Skip to content

Commit

Permalink
io: Don't close the file handle used in size twice.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhelyer committed Apr 20, 2018
1 parent 573fdec commit 70f45b4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/watt/io/file.volt
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ fn size(filename: SinkArg) size_t
throw new FileException(new "Couldn't ftell at the end of '${filename}'.");
}

cstdio.fclose(fp);
return sz;
}

Expand Down

0 comments on commit 70f45b4

Please sign in to comment.