Skip to content

Commit

Permalink
clang-format :(
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce committed Jun 19, 2017
1 parent 783900f commit d98d240
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lighthouse-cli/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ function saveResults(results: Results, artifacts: Object, flags: Flags) {
return innerPromise.then((_: Results) => Printer.write(results, outputType, outputPath));
}, Promise.resolve(results));
} else {
const outputPath = flags.outputPath ||
`${resolvedPath}.report.${typeToExtension(flags.output)}`;
const outputPath =
flags.outputPath || `${resolvedPath}.report.${typeToExtension(flags.output)}`;
return Printer.write(results, flags.output, outputPath).then(results => {
if (flags.output === Printer.OutputMode[Printer.OutputMode.html] ||
flags.output === Printer.OutputMode[Printer.OutputMode.domhtml]) {
Expand Down
9 changes: 4 additions & 5 deletions lighthouse-cli/sentry-prompt.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import {existsSync} from 'fs';
import {join as joinPath} from 'path';
import {inquirer, Configstore} from './shim-modules';

import {Configstore, inquirer} from './shim-modules';

const log = require('../lighthouse-core/lib/log');

const MAXIMUM_WAIT_TIME = 20 * 1000;
Expand Down Expand Up @@ -33,10 +35,7 @@ async function prompt() {
timeout = setTimeout(() => {
prompt.ui.close();
process.stdout.write('\n');
log.warn(
'CLI',
'No response to error logging preference, errors will not be reported.'
);
log.warn('CLI', 'No response to error logging preference, errors will not be reported.');
resolve(false);
}, MAXIMUM_WAIT_TIME);
});
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-cli/shim-modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ try {
}
}

export { opn, updateNotifier, inquirer, Configstore };
export {opn, updateNotifier, inquirer, Configstore};

0 comments on commit d98d240

Please sign in to comment.