Explorar o código

Match not implemented error check to others

Signed-off-by: Christopher Crone <christopher.crone@docker.com>
Christopher Crone %!s(int64=7) %!d(string=hai) anos
pai
achega
7406088853
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      client/errors.go

+ 2 - 2
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()
 }