Skip to content

Commit

Permalink
Fix a typo in the lint CLI message
Browse files Browse the repository at this point in the history
  • Loading branch information
Setogit committed Oct 8, 2016
1 parent bd914e5 commit 7f74ed2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/lint.js
Expand Up @@ -157,7 +157,7 @@ function lintMessageFiles(enOnly, callback) {
if (msg.phLeftOrphans && msg.phLeftOrphans.length > 0) {
plural = msg.phLeftOrphans.length > 1;
console.error('***', trait.bundleName + ':' + key,
'seems to have ' + (plural ? '' : 'an ') +
'seems to have ' + (plural ? '' : 'a ') +
'left orphan placeholder' + (plural ? 's:' : ':'));
msg.phLeftOrphans.forEach(function(phKey) {
console.error('*** ' + phKey);
Expand All @@ -167,7 +167,7 @@ function lintMessageFiles(enOnly, callback) {
if (msg.phRightOrphans && msg.phRightOrphans.length > 0) {
plural = msg.phRightOrphans.length > 1;
console.error('***', trait.bundleName + ':' + key,
'seems to have ' + (plural ? '' : 'an ') +
'seems to have ' + (plural ? '' : 'a ') +
'right orphan placeholder' + (plural ? 's:' : ':'));
msg.phRightOrphans.forEach(function(phKey) {
console.error('*** ' + phKey);
Expand Down
4 changes: 2 additions & 2 deletions test/test-lint.js
Expand Up @@ -36,7 +36,7 @@ var targets = {
],
err: [
'*** null en:msg002RightPrphanPlaceholderUrl seems to' +
' have an right orphan placeholder:\n',
' have a right orphan placeholder:\n',
'*** url}\n',
'*** English file is malformed. Other languages not checked.\n',
],
Expand All @@ -48,7 +48,7 @@ var targets = {
],
err: [
'*** null en:msg003LeftPrphanPlaceholderPort seems to' +
' have an left orphan placeholder:\n',
' have a left orphan placeholder:\n',
'*** {port \n',
'*** English file is malformed. Other languages not checked.\n',
],
Expand Down

0 comments on commit 7f74ed2

Please sign in to comment.