diff options
author | praveensastry <sastry.praveen@gmail.com> | 2019-08-09 17:13:06 +1000 |
---|---|---|
committer | praveensastry <sastry.praveen@gmail.com> | 2019-08-09 17:13:06 +1000 |
commit | 73985c6545d887644d8aa4f0e00491cc903501c7 (patch) | |
tree | 94184c2ba1321965a99e28f8703e1313b916a1e6 /pkg/refs | |
parent | 8d89c0d92b3839eed0839b1a9bc7666e6261d972 (diff) |
Fix the Stringer for leak mode
Diffstat (limited to 'pkg/refs')
-rw-r--r-- | pkg/refs/refcounter.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/refs/refcounter.go b/pkg/refs/refcounter.go index 417f4a2d6..7fe42d8ff 100644 --- a/pkg/refs/refcounter.go +++ b/pkg/refs/refcounter.go @@ -235,11 +235,11 @@ const ( func (l LeakMode) String() string { switch l { case NoLeakChecking: - return "NoLeakChecking" + return "disabled" case LeaksLogWarning: - return "LeaksLogWarning" + return "warning" case LeaksLogTraces: - return "LeaksLogTraces" + return "traces" default: panic(fmt.Sprintf("Invalid leakmode: %d", l)) } |