Skip to content

Commit 2a4dfec

Browse files
committed
Fix typo in unknown argument warning
1 parent 2e73a02 commit 2a4dfec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/lessc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,12 +483,12 @@ function processPluginQueue() {
483483
case 'rewrite-urls':
484484
if (match[2] === 'all' || match[2] === 'local') {
485485
options.rewriteUrls = match[2];
486-
} if (match[2] === 'off') {
486+
} else if (match[2] === 'off') {
487487
options.rewriteUrls = false;
488488
} else if (!match[2]) {
489489
options.rewriteUrls = 'all';
490490
} else {
491-
console.error('Unkown rewrite-urls argument ' + match[2]);
491+
console.error('Unknown rewrite-urls argument ' + match[2]);
492492
continueProcessing = false;
493493
process.exitCode = 1;
494494
}

lib/less-rhino/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ function writeFile(filename, content) {
320320
} else if (!match[2]) {
321321
options.rewriteUrls = 'all';
322322
} else {
323-
print('Unkown rewrite-urls argument ' + match[2]);
323+
print('Unknown rewrite-urls argument ' + match[2]);
324324
continueProcessing = false;
325325
currentErrorcode = 1;
326326
}

0 commit comments

Comments
 (0)