Skip to content

Commit

Permalink
Satisfy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli committed Oct 3, 2020
1 parent 79c8f6f commit 22894a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/tags/yaml-1.1/index.js
Expand Up @@ -17,7 +17,7 @@ const intIdentify = value =>
typeof value === 'bigint' || Number.isInteger(value)

function intResolve(str, offset, radix) {
let sign = str[0]
const sign = str[0]
if (sign === '-' || sign === '+') offset += 1
str = str.substring(offset).replace(/_/g, '')
if (intOptions.asBigInt) {
Expand Down
1 change: 0 additions & 1 deletion src/tags/yaml-1.1/omap.js
@@ -1,4 +1,3 @@
import { YAMLSemanticError } from '../../errors.js'
import { Pair } from '../../ast/Pair.js'
import { Scalar } from '../../ast/Scalar.js'
import { YAMLMap } from '../../ast/YAMLMap.js'
Expand Down
4 changes: 3 additions & 1 deletion src/tags/yaml-1.1/timestamp.js
@@ -1,3 +1,5 @@
/* global BigInt */

import { intOptions } from '../options.js'
import { stringifyNumber } from '../../stringify/stringifyNumber.js'

Expand Down Expand Up @@ -79,7 +81,7 @@ export const timestamp = {
')?$'
),
resolve(str) {
let [_, year, month, day, hour, minute, second, millisec, tz] = str.match(
let [, year, month, day, hour, minute, second, millisec, tz] = str.match(
timestamp.test
)
if (millisec) millisec = (millisec + '00').substr(1, 3)
Expand Down

0 comments on commit 22894a4

Please sign in to comment.