Skip to content

Commit

Permalink
chore: latest prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Shirokov committed Sep 23, 2020
1 parent 5d99fd5 commit edcfec1
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@typescript-eslint/parser": "^4.2.0",
"eslint": "^7.9.0",
"jest": "^26.4.2",
"prettier": "^2.0.2",
"prettier": "^2.1.2",
"semantic-release": "^17.1.2",
"ts-jest": "^26.4.0",
"typescript": "^4.0.3"
Expand Down
2 changes: 1 addition & 1 deletion src/encoding/iso2022.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Context, Recogniser } from '.';
import match, { Match } from '../match'
import match, { Match } from '../match';

/**
* This is a superclass for the individual detectors for
Expand Down
6 changes: 3 additions & 3 deletions src/encoding/mbcs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Context, Recogniser } from '.';
import match, { Match } from '../match'
import match, { Match } from '../match';

/**
* Binary search implementation (recursive)
Expand Down Expand Up @@ -108,7 +108,7 @@ class mbcs implements Recogniser {
const iter = new IteratedChar();

detectBlock: {
for (iter.reset(); this.nextChar(iter, det);) {
for (iter.reset(); this.nextChar(iter, det); ) {
totalCharCount++;
if (iter.error) {
badCharCount++;
Expand Down Expand Up @@ -275,7 +275,7 @@ export class sjis extends mbcs {
iter.index = iter.nextIndex;
iter.error = false;

const firstByte = iter.charValue = iter.nextByte(det);
const firstByte = (iter.charValue = iter.nextByte(det));
if (firstByte < 0) return false;

if (firstByte <= 0x7f || (firstByte > 0xa0 && firstByte <= 0xdf))
Expand Down
2 changes: 1 addition & 1 deletion src/encoding/unicode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class UTF_32 implements Recogniser, WithGetChar {
numInvalid = 0,
hasBOM = false,
confidence = 0;
const limit = (det.fRawLength / 4) * 4
const limit = (det.fRawLength / 4) * 4;
const input = det.fRawInput;

if (limit == 0) {
Expand Down
4 changes: 2 additions & 2 deletions src/encoding/utf8.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default class Utf8 implements Recogniser {
numInvalid = 0,
trailBytes = 0,
confidence;
const input = det.fRawInput
const input = det.fRawInput;

if (
det.fRawLength >= 3 &&
Expand Down Expand Up @@ -42,7 +42,7 @@ export default class Utf8 implements Recogniser {
}

// Verify that we've got the right number of trail bytes in the sequence
for (; ;) {
for (;;) {
i++;
if (i >= det.fRawLength) break;

Expand Down

0 comments on commit edcfec1

Please sign in to comment.