Skip to content

Commit

Permalink
add nolint to 2 strings.splitN in web.go
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidapaulopt committed Jan 9, 2025
1 parent 622c047 commit af21eed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ func init() {
func GuessIcon(name string) string {
nameParts := strings.Split(name, "/")
lastPart := nameParts[len(nameParts)-1]
baseName := strings.SplitN(lastPart, ":", 2)[0]
baseName = strings.SplitN(baseName, "@", 2)[0]
baseName := strings.SplitN(lastPart, ":", 2)[0] //nolint
baseName = strings.SplitN(baseName, "@", 2)[0] //nolint

var foundFile string
err := fs.WalkDir(dist, ".", func(path string, d fs.DirEntry, err error) error {
Expand Down

0 comments on commit af21eed

Please sign in to comment.