Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warning closing #1833 #1859

Merged
merged 1 commit into from
Oct 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/beautifiers/executable.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down Expand Up @@ -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
Expand Down