fix nimpretty warning (#13700)

This commit is contained in:
Jasper Jenkins
2020-03-20 01:22:40 -07:00
committed by GitHub
parent 35fb38629f
commit 28b6b1c3fb

View File

@@ -67,8 +67,7 @@ proc main =
# `prettyPrint` could over-write it (note that the backup may happen even
# if input is not actually over-written, when nimpretty is a noop).
# --backup was un-documented (rely on git instead).
var opt: PrettyOptions
opt.maxLineLen = 80
var opt = PrettyOptions(indWidth: 0, maxLineLen: 80)
for kind, key, val in getopt():
case kind
of cmdArgument: