Skip to content

Commit deb7c14

Browse files
committed
chore: fix lint
1 parent e95fa6b commit deb7c14

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/format.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
const headerMagic = Buffer.from('MDMP').readUInt32LE(0)
55

66
if (!Buffer.prototype.readBigUInt64LE) {
7-
Buffer.prototype.readBigUInt64LE = function(offset) {
7+
Buffer.prototype.readBigUInt64LE = function (offset) {
88
// ESLint doesn't support BigInt yet
99
// eslint-disable-next-line
1010
return BigInt(this.readUInt32LE(offset)) + (BigInt(this.readUInt32LE(offset + 4)) << BigInt(32))
@@ -114,19 +114,19 @@ function debugIdFromGuidAndAge (guid, age) {
114114
// https://chromium.googlesource.com/breakpad/breakpad/+/c46151db0ffd1a8dae914e45f1212ef427f61ed3/src/google_breakpad/common/minidump_format.h#426
115115
function readCVRecord (buf, { rva, data_size: dataSize }) {
116116
if (rva === 0) return
117-
const cv_signature = buf.readUInt32LE(rva)
118-
if (cv_signature !== 0x53445352 /* SDSR */) {
117+
const cvSignature = buf.readUInt32LE(rva)
118+
if (cvSignature !== 0x53445352 /* SDSR */) {
119119
const age = buf.readUInt32LE(rva + 4 + 16)
120120
const guid = readGUID(buf.subarray(rva + 4, rva + 4 + 16))
121121
return {
122-
cv_signature,
122+
cv_signature: cvSignature,
123123
guid,
124124
age,
125125
pdb_file_name: buf.subarray(rva + 4 + 16 + 4, rva + dataSize - 1).toString('utf8'),
126126
debug_file_id: debugIdFromGuidAndAge(guid, age)
127127
}
128128
} else {
129-
return {cv_signature}
129+
return {cv_signature: cvSignature}
130130
}
131131
}
132132

@@ -141,7 +141,7 @@ function readString (buf, rva) {
141141
// MDStreamType
142142
// https://chromium.googlesource.com/breakpad/breakpad/+/refs/heads/master/src/google_breakpad/common/minidump_format.h#310
143143
const streamTypes = {
144-
MD_MODULE_LIST_STREAM: 4,
144+
MD_MODULE_LIST_STREAM: 4
145145
}
146146

147147
const streamTypeProcessors = {

0 commit comments

Comments
 (0)