Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoretenable committed Aug 20, 2024
1 parent b4985ab commit e766442
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/iac-providers/terraform/v14/load-dir_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func TestLoadIacDir(t *testing.T) {
dirPath: filepath.Join(testDataDir, "invalid-moduleconfigs"),
tfv14: TfV14{},
// same error is loaded two times because, both root module and a child module will generated same error
wantErr: multierror.Append(fmt.Errorf(errStringInvalidModuleConfigs), fmt.Errorf(errStringInvalidModuleConfigs)), //lint:ignore SA1006 placeholder %s are specified in string constants
wantErr: multierror.Append(fmt.Errorf(errStringInvalidModuleConfigs), fmt.Errorf(errStringInvalidModuleConfigs)), //lint:ignore SA1006 placeholder %s are specified in string constants 1
},
{
name: "load invalid config dir",
Expand All @@ -122,7 +122,7 @@ func TestLoadIacDir(t *testing.T) {
options: map[string]interface{}{
"nonRecursive": true,
},
wantErr: multierror.Append(fmt.Errorf(testErrorMessage)), //lint:ignore SA1006 placeholder %s are specified in string constants
wantErr: multierror.Append(fmt.Errorf(testErrorMessage)), //lint:ignore SA1006 placeholder %s are specified in string constants 1
},
{
name: "load invalid config dir recursive",
Expand Down
2 changes: 1 addition & 1 deletion pkg/iac-providers/terraform/v15/load-dir_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func TestLoadIacDir(t *testing.T) {
options: map[string]interface{}{
"nonRecursive": true,
},
wantErr: multierror.Append(fmt.Errorf(testErrorMessage)),
wantErr: multierror.Append(fmt.Errorf(testErrorMessage)), //lint:ignore SA1006 placeholder %s are specified in string constants 4
},
{
name: "load invalid config dir recursive",
Expand Down

0 comments on commit e766442

Please sign in to comment.