Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
robsimmons committed Nov 9, 2023
1 parent 2f59e9d commit cb751b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
},
}
};
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test with vitest
name: Run checks

on:
push:
Expand Down
3 changes: 1 addition & 2 deletions src/datalog/dusa-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ function mkStream<T>(xs: T[]): Istream<T> {
function force(t: Istream<Token>, type: string): Token {
const tok = t.next();
if (tok === null) throw new DusaSyntaxError(`Expected ${type}, found end of input.`);
if (tok.type !== type)
throw new DusaSyntaxError(`Expected ${type}, found ${tok.type}`, tok.loc);
if (tok.type !== type) throw new DusaSyntaxError(`Expected ${type}, found ${tok.type}`, tok.loc);
return tok;
}

Expand Down

0 comments on commit cb751b5

Please sign in to comment.