Skip to content

Commit

Permalink
Little premature optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaid committed May 23, 2021
1 parent 69c324f commit 00a8ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import readFileString from "read-file-string"
export default async file => {
const text = await readFileString(file)
if (text === null) {
return null
return text
}
return json5.parse(text)
}

0 comments on commit 00a8ff8

Please sign in to comment.