Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
Run fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian McKenzie committed Mar 25, 2020
1 parent 8f078ac commit f02f618
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/@romejs/js-parser/tokenizer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,8 @@ function finishOp(parser: JSParser, type: TokenTypes, size: number): void {

export function readRegexp(parser: JSParser): void {
const start = parser.state.index;
let escaped, inClass;
let escaped;
let inClass;
for (;;) {
if (parser.state.index >= parser.length) {
parser.addDiagnostic({
Expand Down
5 changes: 4 additions & 1 deletion packages/@romejs/string-diff/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,10 @@ function halfMatch(text1: string, text2: string): undefined | HalfMatch {
}

// A half-match was found, sort out the return data.
let text1_a, text1_b, text2_a, text2_b;
let text1_a;
let text1_b;
let text2_a;
let text2_b;
if (text1.length > text2.length) {
text1_a = hm[0];
text1_b = hm[1];
Expand Down

0 comments on commit f02f618

Please sign in to comment.