Skip to content

Commit

Permalink
chore(lint): lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
nesangcode committed Apr 25, 2024
1 parent 63a0dbc commit 3325619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/minio/minio.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func NewStorage(conf *config.MinioConfig, timeout time.Duration) (storage.Backen
}

// TrimHTTP trims "http://" or "https://" prefix from input string.
// Minio doesn't need to specify protocol in the URL so it should be trimmed. 
// Minio doesn't need to specify protocol in the URL so it should be trimmed.
// Related issue: https://github.com/gomods/athens/issues/1938#issuecomment-2067590653
func TrimHTTP(s string) string {
s = strings.TrimPrefix(s, "http://")
Expand Down

0 comments on commit 3325619

Please sign in to comment.