Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
oltolm committed Nov 8, 2021
1 parent 5c83e81 commit 3ebd914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dxvk_cache_tool.nim
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ proc main(output: string, files: seq[string]): int =
for i, path in config.files:
var (_, _, ext) = splitFile(path)
doAssert(ext == ".dxvk-cache", "File extension mismatch: expected .dxvk-cache")

var fs = openFileStream(path)
defer: close(fs)

Expand Down Expand Up @@ -120,7 +120,7 @@ proc main(output: string, files: seq[string]): int =
writeLine(stdout, format("$# entries are omitted as invalid", omitted))

doAssert(entries.len != 0, "No valid state cache entries found")

var fs = openFileStream(config.output, fmWrite)
defer: close(fs)
writeLine(stdout, format("Writing $# entries to file $#", entries.len,
Expand Down

0 comments on commit 3ebd914

Please sign in to comment.