Skip to content

Commit 6c3f3cd

Browse files
format
1 parent cf44701 commit 6c3f3cd

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

packages/core/src/file.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ if (__DEV__ && typeof globalThis !== "undefined") {
1818
globalThis[devKey] = globalThis[devKey].filter((i) => i !== map);
1919

2020
if (globalThis[devKey].length > 0) {
21-
console.warn("[@git-diff-view/core] Multiple instances of @git-diff-view/core detected in the current environment.");
21+
console.warn(
22+
"[@git-diff-view/core] Multiple instances of @git-diff-view/core detected in the current environment."
23+
);
2224
}
2325

2426
globalThis[devKey].push(map);
@@ -111,7 +113,9 @@ export class File {
111113

112114
if (this.rawLength > finalHighlighter.maxLineToIgnoreSyntax) {
113115
if (__DEV__) {
114-
console.warn(`[@git-diff-view/core] Ignoring syntax highlighting for the current file as the raw length exceeds the threshold: ${this.rawLength}`);
116+
console.warn(
117+
`[@git-diff-view/core] Ignoring syntax highlighting for the current file as the raw length exceeds the threshold: ${this.rawLength}`
118+
);
115119
}
116120
return;
117121
}
@@ -198,7 +202,12 @@ export class File {
198202
Object.values(this.syntaxFile).forEach(({ value, lineNumber }) => {
199203
if (value !== this.rawFile[lineNumber]) {
200204
console.warn(
201-
"[@git-diff-view/core] Content mismatch detected at line " + lineNumber + ": " + value + " !== " + this.rawFile[lineNumber]
205+
"[@git-diff-view/core] Content mismatch detected at line " +
206+
lineNumber +
207+
": " +
208+
value +
209+
" !== " +
210+
this.rawFile[lineNumber]
202211
);
203212
}
204213
});

0 commit comments

Comments
 (0)