Skip to content

Commit

Permalink
global: Fix golangci-lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Sep 4, 2024
1 parent 6039c5a commit c1e2294
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion managers/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (m *Manager) ManagePackages(imageTarget shared.ImageTarget) error {
func (m *Manager) ManageRepositories(imageTarget shared.ImageTarget) error {
var err error

if m.def.Packages.Repositories == nil || len(m.def.Packages.Repositories) == 0 {
len(m.def.Packages.Repositories) == 0 {

Check failure on line 170 in managers/manager.go

View workflow job for this annotation

GitHub Actions / Code tests (1.22.x, ubuntu-20.04)

syntax error: unexpected { at end of statement

Check failure on line 170 in managers/manager.go

View workflow job for this annotation

GitHub Actions / Code tests (1.22.x, ubuntu-20.04)

syntax error: unexpected { at end of statement

Check failure on line 170 in managers/manager.go

View workflow job for this annotation

GitHub Actions / Code tests (1.22.x, ubuntu-20.04)

expected ';', found '{' (typecheck)

Check failure on line 170 in managers/manager.go

View workflow job for this annotation

GitHub Actions / Code tests (1.22.x, ubuntu-22.04)

syntax error: unexpected { at end of statement

Check failure on line 170 in managers/manager.go

View workflow job for this annotation

GitHub Actions / Code tests (1.22.x, ubuntu-22.04)

syntax error: unexpected { at end of statement

Check failure on line 170 in managers/manager.go

View workflow job for this annotation

GitHub Actions / Code tests (1.22.x, ubuntu-22.04)

expected ';', found '{' (typecheck)

Check failure on line 170 in managers/manager.go

View workflow job for this annotation

GitHub Actions / Code tests (1.23.x, ubuntu-20.04)

syntax error: unexpected { at end of statement

Check failure on line 170 in managers/manager.go

View workflow job for this annotation

GitHub Actions / Code tests (1.23.x, ubuntu-20.04)

syntax error: unexpected { at end of statement

Check failure on line 170 in managers/manager.go

View workflow job for this annotation

GitHub Actions / Code tests (1.23.x, ubuntu-20.04)

expected ';', found '{' (typecheck)

Check failure on line 170 in managers/manager.go

View workflow job for this annotation

GitHub Actions / Code tests (1.23.x, ubuntu-22.04)

syntax error: unexpected { at end of statement

Check failure on line 170 in managers/manager.go

View workflow job for this annotation

GitHub Actions / Code tests (1.23.x, ubuntu-22.04)

syntax error: unexpected { at end of statement

Check failure on line 170 in managers/manager.go

View workflow job for this annotation

GitHub Actions / Code tests (1.23.x, ubuntu-22.04)

expected ';', found '{' (typecheck)
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion shared/chroot.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func SetupChroot(rootfs string, definition Definition, m []ChrootMount) (func()
}
}

if envs.EnvVariables != nil && len(envs.EnvVariables) > 0 {
if len(envs.EnvVariables) > 0 {
imageTargets := ImageTargetUndefined | ImageTargetAll

if definition.Targets.Type == DefinitionFilterTypeContainer {
Expand Down

0 comments on commit c1e2294

Please sign in to comment.