From 71000ee6d0b5c090c6da26052a799b2c4b3f8114 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Thu, 5 Jul 2018 21:38:55 -0500 Subject: [PATCH] Unexport ApiMethodNotAllowedError --- pilosa.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pilosa.go b/pilosa.go index 9615e88b8..9b5918ee2 100644 --- a/pilosa.go +++ b/pilosa.go @@ -63,15 +63,15 @@ var ( ErrNotImplemented = errors.New("not implemented") ) -// ApiMethodNotAllowedError wraps an error value indicating that a particular +// apiMethodNotAllowedError wraps an error value indicating that a particular // API method is not allowed in the current cluster state. -type ApiMethodNotAllowedError struct { +type apiMethodNotAllowedError struct { error } // NewApiMethodNotAllowedError returns err wrapped in an ApiMethodNotAllowedError. -func NewApiMethodNotAllowedError(err error) ApiMethodNotAllowedError { - return ApiMethodNotAllowedError{err} +func NewApiMethodNotAllowedError(err error) apiMethodNotAllowedError { + return apiMethodNotAllowedError{err} } // BadRequestError wraps an error value to signify that a request could not be