Skip to content

Commit

Permalink
style: added named paramter
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 5857d76ec1e0d9762a5d72e1d16a26cf91ba90a609907fb07d08974b194027d6
  • Loading branch information
thindil committed Jan 17, 2024
1 parent 4dccebe commit 4cda3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/history.nim
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ proc updateHistory*(commandToAdd: string; db;
result = db.historyLength
var value: OptionValue = ""
let historyAmount: Natural = try:
value = getOption(optionName = "historyLength", db = db, "500")
value = getOption(optionName = "historyLength", db = db, defaultValue = "500")
($value).parseInt
except:
500
Expand Down

0 comments on commit 4cda3fb

Please sign in to comment.