Skip to content

Commit

Permalink
Ensure Go 1.11 compatibility... (#215)
Browse files Browse the repository at this point in the history
...by replacing strings.ReplaceAll() with strings.Replace().

Progress towards #206
  • Loading branch information
fweikert authored Feb 11, 2021
1 parent e93e6d6 commit 089a39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repositories/gcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func listDirectoriesInReleaseBucket(prefix string) ([]string, bool, error) {
func getVersionsFromGCSPrefixes(versions []string) []string {
result := make([]string, len(versions))
for i, v := range versions {
noSlashes := strings.ReplaceAll(v, "/", "")
noSlashes := strings.Replace(v, "/", "", -1)
result[i] = strings.TrimSuffix(noSlashes, "release")
}
return result
Expand Down

0 comments on commit 089a39a

Please sign in to comment.