Skip to content

Commit

Permalink
gc actions
Browse files Browse the repository at this point in the history
  • Loading branch information
samirtahir91 committed Mar 22, 2024
1 parent a69544e commit a550f2c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/controller/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ var _ = BeforeSuite(func() {

var err error

errd := os.Setenv("SOURCE_NAMESPACE", "default")
if errd != nil {
fmt.Println("Failed to set SOURCE_NAMESPACE environment variable:", errd)
// Ignore the error check for os.Setenv
// nolint:errcheck
err = os.Setenv("SOURCE_NAMESPACE", "default")
if err != nil {
fmt.Println("Failed to set SOURCE_NAMESPACE environment variable:", err)
}

// cfg is defined in this file globally.
Expand Down

0 comments on commit a550f2c

Please sign in to comment.