From b0655dc00bc615faf1a2c7992ad90032c63f1641 Mon Sep 17 00:00:00 2001 From: iinsertNameHere Date: Thu, 9 May 2024 10:08:52 +0200 Subject: [PATCH] Fixed commit hash not showing in full length --- src/catnip.nim | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/catnip.nim b/src/catnip.nim index a1d856d..a4dd9b4 100644 --- a/src/catnip.nim +++ b/src/catnip.nim @@ -17,12 +17,6 @@ when not defined release: import times let t0 = epochTime() -proc cap(s: string, length: int): string = - if s.len > length: - result = s[0..length] - else: - result = s - # Help text proc printHelp(cfg: Config) = let mounts_len = probe.getMounts().len @@ -78,7 +72,7 @@ if paramCount() > 0: # Version Argument if param == "-v" or param == "--version": - echo "Commit " & CURRENTCOMMIT.cap(7) + echo "Commit " & CURRENTCOMMIT quit() # Config Argument