From 7406088853b6cbcb8996c367062cee2e1ee6eaaa Mon Sep 17 00:00:00 2001 From: Christopher Crone Date: Mon, 25 Sep 2017 13:58:51 +0200 Subject: [PATCH] Match not implemented error check to others Signed-off-by: Christopher Crone --- client/errors.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/errors.go b/client/errors.go index 3f52dfe5f6..ba29bce679 100644 --- a/client/errors.go +++ b/client/errors.go @@ -171,10 +171,10 @@ func (e notImplementedError) NotImplemented() bool { return true } -// IsNotImplementedError returns true if the error is a NotImplemented error. +// IsErrNotImplemented returns true if the error is a NotImplemented error. // This is returned by the API when a requested feature has not been // implemented. -func IsNotImplementedError(err error) bool { +func IsErrNotImplemented(err error) bool { te, ok := err.(notImplementedError) return ok && te.NotImplemented() }