Skip to content

Commit

Permalink
style: run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMarble committed Jan 16, 2023
1 parent 06d4842 commit 5553dea
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion internal/img/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ func (k *keycap) draw(ctx *gg.Context) {
_, sh := ctx.MeasureString(k.layer3)
ctx.DrawString(k.layer3, k.x+margin+3, k.y+k.h-sh-margin)
}

}

func maxX(l []keyboard.Key) float64 {
Expand Down
3 changes: 1 addition & 2 deletions pkg/infojson/infojson.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ func fetch(url string) (*file, error) {
log.Info().Msg("Fetching keyboard layout.")
log.Debug().Str("url", url).Send()

resp, err := http.Get(url)

resp, err := http.Get(url) //nolint:gosec
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/keymap/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func GetSymbol(key string) string {
case "SPC":
return "Spc" // "␣"
case "RET", "RETURN", "ENTER":
return "Enter" //"⏎"
return "Enter" // "⏎"
case "CMMA":
return ","
case "DOT":
Expand Down

0 comments on commit 5553dea

Please sign in to comment.