chore: fix linting

This commit is contained in:
Remy Sharp
2017-12-28 22:11:33 +00:00
parent 6e839d4a33
commit 6333fa5a4c

View File

@@ -79,7 +79,8 @@ function exec(nodemonOptions, execMap) {
const script = expandScript(options.args[0],
options.ext && ('.' + (options.ext || 'js').split(',')[0]));
if (script !== options.args[0]) { // if the script was found, shift it off our args
// if the script was found, shift it off our args
if (script !== options.args[0]) {
options.script = script;
options.args.shift();
}