Skip to content

Commit

Permalink
chore: update NuGet to 3
Browse files Browse the repository at this point in the history
  • Loading branch information
develar committed Apr 2, 2016
1 parent c62683a commit 217debf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"bluebird": "^3.3.4",
"command-line-args": "^2.1.6",
"electron-packager": "^6.0.0",
"electron-winstaller-fixed": "^2.0.6-beta.5",
"electron-winstaller-fixed": "^2.0.6-beta.6",
"fs-extra": "^0.26.7",
"fs-extra-p": "^0.2.0",
"globby": "^4.0.0",
Expand Down
8 changes: 4 additions & 4 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ export function exec(file: string, args?: string[], options?: ExecOptions): Blue
}
else {
if (stdout.length !== 0) {
console.error(stdout.toString())
console.log(stdout.toString())
}
if (stderr.length !== 0) {
reject(new Error(stderr.toString() + "\n" + error.toString()))
if (stderr.length === 0) {
reject(error)
}
else {
reject(error)
reject(new Error(stderr.toString() + "\n" + error.toString()))
}
}
})
Expand Down
2 changes: 1 addition & 1 deletion src/winPackager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,6 @@ function parseIco(buffer: Buffer): Array<Size> {
return result
}

function isIco(buffer: Buffer) {
function isIco(buffer: Buffer): boolean {
return buffer.readUInt16LE(0) === 0 && buffer.readUInt16LE(2) === 1
}

0 comments on commit 217debf

Please sign in to comment.