Skip to content

Commit b7d30aa

Browse files
sjinksCopilot
andauthored
fix: apply code review suggestions
Co-authored-by: Copilot <[email protected]>
1 parent a4181f5 commit b7d30aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/watchfilecommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ async function setUpWatcher(filename: string): Promise<Resource | null> {
111111
try {
112112
stats = await statFile(filename);
113113
if (stats) {
114-
if (stats.size - offset > 0) {
114+
if (stats.size > offset) {
115115
fd = await open(filename, 'r');
116116
const buffer = Buffer.alloc(stats.size - offset);
117117
await fd.read(buffer, 0, buffer.length, offset);

0 commit comments

Comments
 (0)