From e9db8c09e87ede1838a6721432473579e6c38c92 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Fri, 30 Jan 2015 14:19:36 -0400 Subject: [PATCH] Fix stdout argument issue --- lib/drive/drive.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/drive/drive.coffee b/lib/drive/drive.coffee index 57145e18..392731f6 100644 --- a/lib/drive/drive.coffee +++ b/lib/drive/drive.coffee @@ -1,6 +1,6 @@ os = require('os') fs = require('fs') -_ = require('lodash') +_ = require('lodash-contrib') async = require('async') IS_WINDOWS = os.platform() is 'win32' @@ -29,7 +29,7 @@ exports.writeImage = (devicePath, imagePath, options = {}, callback = _.noop) -> (callback) -> return callback() if not IS_WINDOWS - win32.rescanDrives(callback) + win32.rescanDrives(_.unary(callback)) (callback) -> if not options.progress @@ -39,7 +39,7 @@ exports.writeImage = (devicePath, imagePath, options = {}, callback = _.noop) -> (callback) -> return callback() if not IS_WINDOWS - win32.rescanDrives(callback) + win32.rescanDrives(_.unary(callback)) ], (error) -> return callback() if not error?