Skip to content

Commit

Permalink
golangci-lint
Browse files Browse the repository at this point in the history
Signed-off-by: Miaha Cybersec <[email protected]>
  • Loading branch information
Miaha Cybersec authored and Miaha Cybersec committed Jul 22, 2024
1 parent d9b67ca commit 28aa14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pkgmgr/dpkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func getAPTImageName(manifest *unversioned.UpdateManifest, osVersion string) str
osType := Debian

if manifest == nil || manifest.Metadata.OS.Type == Debian {
if version > string(11) {
if version > fmt.Sprintf("11") {

Check failure on line 86 in pkg/pkgmgr/dpkg.go

View workflow job for this annotation

GitHub Actions / lint

S1039: unnecessary use of fmt.Sprintf (gosimple)
version = strings.Split("11", ".")[0] + "-slim"
} else {
version = strings.Split(version, ".")[0] + "-slim"

Check warning on line 89 in pkg/pkgmgr/dpkg.go

View check run for this annotation

Codecov / codecov/patch

pkg/pkgmgr/dpkg.go#L89

Added line #L89 was not covered by tests
Expand Down

0 comments on commit 28aa14e

Please sign in to comment.