mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 02:12:11 +00:00
nim pretty: default is now to overwrite files
This commit is contained in:
@@ -23,7 +23,7 @@ var
|
||||
gCheckExtern: bool
|
||||
|
||||
proc overwriteFiles*() =
|
||||
let overWrite = options.getConfigVar("pretty.overwrite").normalize == "on"
|
||||
let overWrite = options.getConfigVar("pretty.overwrite").normalize != "off"
|
||||
let doStrip = options.getConfigVar("pretty.strip").normalize == "on"
|
||||
for i in 0 .. high(gSourceFiles):
|
||||
if not gSourceFiles[i].dirty: continue
|
||||
|
||||
Reference in New Issue
Block a user