Skip to content

Commit

Permalink
fix: typo (#2)
Browse files Browse the repository at this point in the history
* Update log.ts

* Update cmd.ts
  • Loading branch information
joriewong authored Apr 9, 2021
1 parent a07df66 commit eff0c7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import chalk from 'chalk';
import program from 'commander';
import { parseConfig } from './config';
import { lint } from './lint';
import { logResust } from './log';
import { logResult } from './log';

program
.version('0.1.4', '-v, --version')
Expand All @@ -15,7 +15,7 @@ program
// 2. lint size limit
const result = await lint(config);
// 3. log
logResust(result);
logResult(result);
// 4. help doc
const success = result.every((r) => r.passed);
if (!success) {
Expand Down
2 changes: 1 addition & 1 deletion src/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dist/g2plot.min.js
Gzip: No
*/
export function logResust(result: Result) {
export function logResult(result: Result) {
result.forEach((r: SingleResult) => {
const { config, passed, bytes, limitBytes } = r;
const { path, limit, gzip } = config;
Expand Down

0 comments on commit eff0c7b

Please sign in to comment.