Skip to content

Commit 2eb59e9

Browse files
committed
🎨
1 parent a1295b2 commit 2eb59e9

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

test/minidump-test.js

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ describe('minidump', function () {
2525
done()
2626
})
2727
})
28-
2928
})
3029
})
3130

@@ -50,18 +49,18 @@ describe('minidump', function () {
5049
})
5150

5251
var downloadElectronSymbols = function (platform, callback) {
53-
var symbolsPath = temp.mkdirSync('node-minidump-')
52+
electronDownload({
53+
version: '1.4.3',
54+
platform: platform,
55+
symbols: true,
56+
quiet: true
57+
}, function (error, zipPath) {
58+
if (error) return callback(error)
5459

55-
electronDownload({
56-
version: '1.4.3',
57-
platform: platform,
58-
symbols: true,
59-
quiet: true
60-
}, function (error, zipPath) {
61-
if (error) return callback(error)
62-
extractZip(zipPath, {dir: symbolsPath}, function (error) {
63-
if (error) return callback(error)
64-
callback(null, path.join(symbolsPath, 'electron.breakpad.syms'))
60+
var symbolsPath = temp.mkdirSync('node-minidump-')
61+
extractZip(zipPath, {dir: symbolsPath}, function (error) {
62+
if (error) return callback(error)
63+
callback(null, path.join(symbolsPath, 'electron.breakpad.syms'))
6564
})
66-
})
65+
})
6766
}

0 commit comments

Comments
 (0)