Skip to content

Commit

Permalink
style: remove semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao committed Oct 7, 2021
1 parent 9524657 commit 345a665
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const stream = require('stream')
const { promisify } = require('util')

const breakpad = require('parse-breakpad')
const got = require('got');
const mkdirp = require('mkdirp');
const got = require('got')
const mkdirp = require('mkdirp')
const yargs = require('yargs')

const symbolicate = async (options) => {
Expand Down Expand Up @@ -89,7 +89,7 @@ const binaryImages = (dumpText) => {
library,
version,
debugId,
path,
path
})
}
return images
Expand Down Expand Up @@ -170,16 +170,16 @@ async function fetchSymbol(directory, baseUrl, pdb, id, symbolFileName) {
followRedirect: true,
})
// create symbol
await pipeline(str,fs.createWriteStream(symbolPath));
} catch(err) {
await pipeline(str, fs.createWriteStream(symbolPath))
} catch (err) {
if (err.message.startsWith('Response code 404')) {
return false;
return false
} else {
throw err;
throw err
}
}

return true;
return true
}

module.exports = { symbolicate, testing: { parseAddress: parseAddressLine } }
Expand Down
2 changes: 1 addition & 1 deletion spec/symbolication.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { symbolicate } = require('..')

const TIMEOUT = 10 * 60_000;
const TIMEOUT = 10 * 60_000

describe('symbolication', function () {
it('symbolicates a crash report', async () => {
Expand Down

0 comments on commit 345a665

Please sign in to comment.