Skip to content

Commit 72448cb

Browse files
authored
fix: revert #1654 (#1681)
This reverts commit 3d88d07.
1 parent c457580 commit 72448cb

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

registry/tagging.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ package registry
22

33
import (
44
"context"
5-
"fmt"
6-
"strings"
75

86
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations"
97
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
@@ -24,18 +22,5 @@ func AddTags(ctx context.Context, namespaceName, revisionDigest string, tags []s
2422
},
2523
})
2624

27-
if isMismatchedWorkspaceError(err) {
28-
return fmt.Errorf("The current workspace does not match the original workspace for this registry entry. Ensure you are in the correct workspace.")
29-
}
3025
return err
3126
}
32-
33-
func isMismatchedWorkspaceError(err error) bool {
34-
message := err.Error()
35-
36-
if strings.Contains(message, "resolving for reference") {
37-
return true
38-
}
39-
40-
return false
41-
}

0 commit comments

Comments
 (0)