From 712959c125ebd884ca03a849e63348d5cd167312 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 18 Apr 2023 23:16:43 +0300 Subject: use constants --- internal/nagioscode.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal') diff --git a/internal/nagioscode.go b/internal/nagioscode.go index b5dc892..65842be 100644 --- a/internal/nagioscode.go +++ b/internal/nagioscode.go @@ -11,11 +11,11 @@ const ( func (n nagiosCode) Str() string { switch n { - case 0: + case ok: return "OK" - case 1: + case warning: return "WARNING" - case 2: + case critical: return "CRITICAL" default: return "UNKNOWN" -- cgit v1.2.3