Skip to content

Commit 8bffee0

Browse files
committed
chore: format
1 parent 6424e21 commit 8bffee0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/zone_record.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ function unApplyMap(obj, map) {
167167
}
168168
if (obj.type === 'NSEC3') {
169169
const [algo, flags, iters, salt, bitmaps, next] = obj.address.slice(1, -1).split("','")
170-
obj['hash algorithm'] = /^\d+$/.test(algo) ? parseInt(algo) : algo ?? ''
171-
obj.flags = /^\d+$/.test(flags) ? parseInt(flags) : flags ?? ''
172-
obj.iterations = /^\d+$/.test(iters) ? parseInt(iters) : iters ?? ''
170+
obj['hash algorithm'] = /^\d+$/.test(algo) ? parseInt(algo) : (algo ?? '')
171+
obj.flags = /^\d+$/.test(flags) ? parseInt(flags) : (flags ?? '')
172+
obj.iterations = /^\d+$/.test(iters) ? parseInt(iters) : (iters ?? '')
173173
obj.salt = salt
174174
obj['type bit maps'] = bitmaps
175175
obj['next hashed owner name'] = next
@@ -178,9 +178,9 @@ function unApplyMap(obj, map) {
178178
}
179179
if (obj.type === 'NSEC3PARAM') {
180180
const [algo, flags, iters, salt] = obj.address.slice(1, -1).split("','")
181-
obj['hash algorithm'] = /^\d+$/.test(algo) ? parseInt(algo) : algo ?? ''
182-
obj.flags = /^\d+$/.test(flags) ? parseInt(flags) : flags ?? ''
183-
obj.iterations = /^\d+$/.test(iters) ? parseInt(iters) : iters ?? ''
181+
obj['hash algorithm'] = /^\d+$/.test(algo) ? parseInt(algo) : (algo ?? '')
182+
obj.flags = /^\d+$/.test(flags) ? parseInt(flags) : (flags ?? '')
183+
obj.iterations = /^\d+$/.test(iters) ? parseInt(iters) : (iters ?? '')
184184
obj.salt = salt
185185
delete obj.address
186186
delete map.address

0 commit comments

Comments
 (0)