Skip to content

Commit caa4d21

Browse files
committed
fix(helper): Patched replaceWinPath from choking on null values
1 parent b2cb31a commit caa4d21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ exports.formatTimeInterval = function (time) {
131131
}
132132

133133
var replaceWinPath = function (path) {
134-
return exports.isDefined(path) ? path.replace(/\\/g, '/') : path
134+
return _.isString(path) ? path.replace(/\\/g, '/') : path
135135
}
136136

137137
exports.normalizeWinPath = process.platform === 'win32' ? replaceWinPath : _.identity

0 commit comments

Comments
 (0)