@@ -89,7 +89,6 @@ func NewArtifactoryStore(options ArtifactoryStoreOptions) (Store, error) {
89
89
SetOverallRequestTimeout (1 * time .Minute ).
90
90
SetHttpRetries (0 ).
91
91
Build ()
92
-
93
92
if err != nil {
94
93
return nil , err
95
94
}
@@ -112,15 +111,9 @@ func (s *ArtifactoryStore) getKey(stack string, component string, key string) (s
112
111
return "" , fmt .Errorf ("stack delimiter is not set" )
113
112
}
114
113
115
- stackParts := strings .Split (stack , * s .stackDelimiter )
116
- componentParts := strings .Split (component , "/" )
117
-
118
- parts := []string {s .repoName , s .prefix }
119
- parts = append (parts , stackParts ... )
120
- parts = append (parts , componentParts ... )
121
- parts = append (parts , key )
122
-
123
- return strings .ReplaceAll (strings .Join (parts , "/" ), "//" , "/" ), nil
114
+ prefixParts := []string {s .repoName , s .prefix }
115
+ prefix := strings .Join (prefixParts , "/" )
116
+ return getKey (prefix , * s .stackDelimiter , stack , component , key , "/" )
124
117
}
125
118
126
119
func (s * ArtifactoryStore ) Get (stack string , component string , key string ) (interface {}, error ) {
0 commit comments