Skip to content

Commit 99e3478

Browse files
committed
fix
1 parent 63b2d7a commit 99e3478

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/lib/editorFile.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,6 @@ export default class EditorFile {
639639
}
640640
}
641641

642-
// native compares
643642
try {
644643
const fs = fsOperation(this.uri);
645644
const oldText = await fs.readFile(this.encoding);

src/plugins/system/android/com/foxdebug/system/System.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -677,16 +677,6 @@ private void compareFileText(
677677
callback.error("File is not readable");
678678
return;
679679
}
680-
681-
// Check file length before reading
682-
// Note: For multi-byte encodings, file.length() (bytes) won't equal text length (chars),
683-
// but if currentText is longer than file bytes, we know they're different
684-
long fileBytes = file.length();
685-
long currentTextBytes = currentText.getBytes(charset).length;
686-
if (fileBytes != currentTextBytes) {
687-
callback.success(1); // Changed
688-
return;
689-
}
690680

691681
Path path = file.toPath();
692682
fileContent = new String(Files.readAllBytes(path), charset);

0 commit comments

Comments
 (0)