From 08bddb817ac656dabe3b7d0287d9a715d03dbb66 Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Thu, 26 Jul 2018 08:23:04 +0900 Subject: [PATCH] Cleanup CreateOrb to remove unnecessary err check --- api/api.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/api/api.go b/api/api.go index f19ccd42c..61fa3403e 100644 --- a/api/api.go +++ b/api/api.go @@ -359,10 +359,5 @@ func CreateOrb(ctx context.Context, logger *logger.Logger, name string, namespac } orb, err := createOrbWithNsID(ctx, logger, name, namespaceID) - - if err != nil { - return nil, err - } - return orb, err }