From ce3e6bfdf6b722348b88fbad6c5b98d5e4871364 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Mon, 22 Mar 2021 13:45:20 -0700 Subject: [PATCH] Fix linting errors. --- cas/apiv1/services.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cas/apiv1/services.go b/cas/apiv1/services.go index c47f778d..d4dd3c8c 100644 --- a/cas/apiv1/services.go +++ b/cas/apiv1/services.go @@ -56,6 +56,7 @@ type ErrNotImplemented struct { Message string } +// ErrNotImplemented implements the error interface. func (e ErrNotImplemented) Error() string { if e.Message != "" { return e.Message @@ -65,6 +66,6 @@ func (e ErrNotImplemented) Error() string { // StatusCode implements the StatusCoder interface and returns the HTTP 501 // error. -func (s ErrNotImplemented) StatusCode() int { +func (e ErrNotImplemented) StatusCode() int { return http.StatusNotImplemented }