Skip to content

Commit

Permalink
feat(#50): clean for eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Sep 26, 2024
1 parent a7018e0 commit 1d3b297
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const fs = require('fs');
function tokens(file) {
try {
const content = fs.readFileSync(file, 'utf8');
return content.split('\n').filter((c) => c !== undefined && c !== "");
return content.split('\n').filter((c) => c !== undefined && c !== '');
} catch (error) {
console.error(`Error reading tokens file: ${error.message}`);
process.exit(1);
Expand Down
2 changes: 1 addition & 1 deletion test/tokens.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('Test case for tokens.js', function() {
`parsed tokens ${fetched} don't match with expected ${expected}`
)
});
it('fetches one token with one empty line', function () {
it('fetches one token with one empty line', function() {
const parsed = tokens('test/resources/one-empty.txt');
const expected = ['aaa'];
assert.deepEqual(
Expand Down

0 comments on commit 1d3b297

Please sign in to comment.