Skip to content

Commit

Permalink
fixed a few lint errros (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
bestander committed Jul 13, 2016
1 parent 6acb230 commit c69d9b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/cli/commands/cache.js
Expand Up @@ -14,8 +14,6 @@ import type Config from "../../config.js";
import { MessageError } from "../../errors.js";
import * as fs from "../../util/fs.js";

let path = require("path");

export function setFlags(commander: Object) {
commander.usage("cache [clear | ls]");
}
Expand All @@ -39,7 +37,7 @@ export async function run(
throw new MessageError("TODO");
}

if (cmd === "clear") {
if (cmd === "clear" && config.packagesRoot) {
await fs.unlink(config.packagesRoot);
reporter.success(`Cleared ${config.packagesRoot}`);
}
Expand Down
1 change: 1 addition & 0 deletions src/util/child.js
Expand Up @@ -13,6 +13,7 @@
import * as constants from "../constants.js";
import BlockingQueue from "./blocking-queue.js";
import { promisify } from "./promise.js";
import { MessageError } from "../errors.js";

let child = require("child_process");

Expand Down

0 comments on commit c69d9b2

Please sign in to comment.