Skip to content

Commit

Permalink
Tweak some code formatting
Browse files Browse the repository at this point in the history
We don't need to worry about the max-len rule for long strings anymore,
so I updated those lines. I also found a mis-indented line in a function
definition.
  • Loading branch information
lencioni committed Feb 26, 2017
1 parent 2984655 commit 5aa25da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
7 changes: 2 additions & 5 deletions lib/Configuration.js
Expand Up @@ -128,17 +128,14 @@ function checkCurrentVersion(minimumVersion: string) {
return;
}

throw Error(
'The configuration file for this project requires version ' +
`${minimumVersion} or newer. You are using ${version()}.`,
);
throw Error(`The configuration file for this project requires version ${minimumVersion} or newer. You are using ${version()}.`);
}

function mergedValue(
values: Array<any>,
key: string,
options: Object,
): any {
): any {
let mergedResult;
for (let i = 0; i < values.length; i++) {
let value = values[i];
Expand Down
6 changes: 2 additions & 4 deletions lib/__tests__/initializeModuleFinder-test.js
Expand Up @@ -8,9 +8,7 @@ it('fails if required files are missing', () => {
expect(true).toEqual(false); // we shouldn't end up here
})
.catch((error) => {
expect(error.message).toEqual(
`ModuleFinder is disabled for ${bogusDir} ` +
'(none of .importjs.js, package.json were found).',
);
expect(error.message)
.toEqual(`ModuleFinder is disabled for ${bogusDir} (none of .importjs.js, package.json were found).`);
});
});

0 comments on commit 5aa25da

Please sign in to comment.