Skip to content

Commit

Permalink
fix duplicate path declaration error
Browse files Browse the repository at this point in the history
  • Loading branch information
Intizar-T committed May 24, 2024
1 parent f1daff9 commit 9b7088d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const fs = require('node:fs')
const path = require('node:path')
const path = require('path')
const sha3 = require('js-sha3')

function processFile(filePath) {
Expand All @@ -16,7 +15,10 @@ function processFile(filePath) {
.replace(
/\(([^)]+)\)/,
(match) =>
`${match.split(' ').filter((_, idx) => idx % 2 === 0).join(',')})`
`${match
.split(' ')
.filter((_, idx) => idx % 2 === 0)
.join(',')})`
)
.replace(';', '')
const hash = sha3.keccak256(processedLine)
Expand Down

0 comments on commit 9b7088d

Please sign in to comment.