Skip to content

Commit

Permalink
let -> const
Browse files Browse the repository at this point in the history
  • Loading branch information
nexdrew committed Jul 12, 2019
1 parent 952741e commit 7b2293d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -104,7 +104,7 @@ const nextBuildId = async opts => {
const head = await readGitFile(dir, 'HEAD')
let refi = head.indexOf('ref:')
if (refi === -1) refi = 0
let endi = head.indexOf('\n', refi + 4) + 1
const endi = head.indexOf('\n', refi + 4) + 1
const ref = head.slice(refi + 4, endi || undefined).trim()
if (ref) {
id = await readGitFile(dir, ref)
Expand Down Expand Up @@ -158,7 +158,7 @@ nextBuildId.sync = opts => {
const head = readGitFileSync(dir, 'HEAD')
let refi = head.indexOf('ref:')
if (refi === -1) refi = 0
let endi = head.indexOf('\n', refi + 4) + 1
const endi = head.indexOf('\n', refi + 4) + 1
const ref = head.slice(refi + 4, endi || undefined).trim()
if (ref) {
id = readGitFileSync(dir, ref)
Expand Down

0 comments on commit 7b2293d

Please sign in to comment.