From 345a6652d49fe2cd8842362551debbfe0d0d27b5 Mon Sep 17 00:00:00 2001 From: Erick Zhao Date: Thu, 7 Oct 2021 09:45:25 -0700 Subject: [PATCH] style: remove semicolons --- index.js | 16 ++++++++-------- spec/symbolication.spec.js | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/index.js b/index.js index 84fa0d6..cadaa1e 100644 --- a/index.js +++ b/index.js @@ -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) => { @@ -89,7 +89,7 @@ const binaryImages = (dumpText) => { library, version, debugId, - path, + path }) } return images @@ -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 } } diff --git a/spec/symbolication.spec.js b/spec/symbolication.spec.js index 83264df..31dcdf1 100644 --- a/spec/symbolication.spec.js +++ b/spec/symbolication.spec.js @@ -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 () => {