Skip to content

Commit

Permalink
only save messages once. Updated format of messaging and specificity.
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Dorner committed Oct 31, 2018
1 parent 839748a commit eab64c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ process.on('exit', function () {
"format": "android/colors"
}]
Your current build used the following templates:
${template_warnings}
Your current config used the following templates:
${template_warnings}
`));
}

Expand All @@ -103,7 +103,7 @@ process.on('exit', function () {
There is a second argument available that contains the configuration being used to process the style dictionary.
Calls to registerTemplate included the registration of the following custom templates:
${register_template_warnings}
${register_template_warnings}
`));
}

Expand Down
4 changes: 3 additions & 1 deletion lib/utils/groupMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ var GroupMessages = {
if(!groupedMessages[messageGroup]) {
groupedMessages[messageGroup] = [];
}
groupedMessages[messageGroup].push(message);
if(groupedMessages[messageGroup].indexOf(message) === -1) {
groupedMessages[messageGroup].push(message);
}
}
},

Expand Down

0 comments on commit eab64c5

Please sign in to comment.