From 71d9707b69d2f755546e4f47fe5cd6c5a1f89ce6 Mon Sep 17 00:00:00 2001 From: Steven Zeck Date: Mon, 18 Sep 2017 13:29:26 -0500 Subject: [PATCH] Fix deprecation warning closing #1833 --- src/beautifiers/executable.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/beautifiers/executable.coffee b/src/beautifiers/executable.coffee index 61f42b3..ef57a35 100644 --- a/src/beautifiers/executable.coffee +++ b/src/beautifiers/executable.coffee @@ -133,7 +133,7 @@ class Executable @debug("Run: ", @cmd, args, options) { cmd, cwd, ignoreReturnCode, help, onStdin, returnStderr, returnStdoutOrStderr } = options exeName = cmd or @cmd - cwd ?= os.tmpDir() + cwd ?= os.tmpdir() help ?= { program: @cmd link: @installation or @homepage @@ -213,7 +213,7 @@ class Executable Promise.all(args) relativizePaths: (args) -> - tmpDir = os.tmpDir() + tmpDir = os.tmpdir() newArgs = args.map((arg) -> isTmpFile = (typeof arg is 'string' and not arg.includes(':') and \ path.isAbsolute(arg) and path.dirname(arg).startsWith(tmpDir)) @@ -410,7 +410,7 @@ class HybridExecutable extends Executable this.resolveArgs(args) .then((args) => { cwd } = options - tmpDir = os.tmpDir() + tmpDir = os.tmpdir() pwd = fs.realpathSync(cwd or tmpDir) image = @dockerOptions.image workingDir = @dockerOptions.workingDir