icns

Easily create .icns files (Mac Icons) with this Go library or the included CLI.
Log | Files | Refs | LICENSE

commit 142a10ad965afea6bb3beaf1e3efc4dd0ab0d610
parent 887a11b796668020f14e22191ded6be8767d2639
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date:   Tue, 29 Oct 2024 10:14:25 +0800

icns.sizesFrom: omit second index in slice

Linter recommendation.

Signed-off-by: Jack Mordaunt <jackmordaunt.dev@gmail.com>

Diffstat:
Micns.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/icns.go b/icns.go @@ -137,7 +137,7 @@ func biggestSide(img image.Image) uint { func sizesFrom(max uint) []uint { for ii, s := range sizes { if s <= max { - return sizes[ii:len(sizes)] + return sizes[ii:] } } return []uint{}