Skip to content

Commit

Permalink
lint: split variable declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Jun 6, 2021
1 parent 8787268 commit a42215a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ rules:
no-mixed-spaces-and-tabs: error
no-param-reassign: error
no-trailing-spaces: error
one-var: ["error", { "initialized": "never" }]
6 changes: 3 additions & 3 deletions lib/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ function parseLanguage(str, i) {
var match = simpleLanguageRegExp.exec(str);
if (!match) return null;

var prefix = match[1],
suffix = match[2],
full = prefix;
var prefix = match[1]
var suffix = match[2]
var full = prefix

if (suffix) full += "-" + suffix;

Expand Down

0 comments on commit a42215a

Please sign in to comment.