From 4cda3fbb55baf1a72558fdaf888563759e0beba4 Mon Sep 17 00:00:00 2001 From: thindil Date: Wed, 17 Jan 2024 05:20:36 +0000 Subject: [PATCH] style: added named paramter FossilOrigin-Name: 5857d76ec1e0d9762a5d72e1d16a26cf91ba90a609907fb07d08974b194027d6 --- src/history.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/history.nim b/src/history.nim index b2e18d5e..1bea10c2 100644 --- a/src/history.nim +++ b/src/history.nim @@ -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