Skip to content

Commit

Permalink
fix golangci-lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed May 17, 2024
1 parent 970d0a4 commit b3dbf09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions var_file_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ type varFileParserImpl struct {
}

func (h varFileParserImpl) ParseFile(content []byte, fileName string) (*hcl.File, error) {
hclParser := hclFileParser{dslAbbreviation: h.dslAbbreviation}
hclParser := hclFileParser{dslAbbreviation: h.dslAbbreviation} //nolint:gosimple
file, err := hclParser.ParseFile(content, fileName)
if file != nil || err != nil {
return file, err
}
jsonParser := jsonFileParser{dslAbbreviation: h.dslAbbreviation}
jsonParser := jsonFileParser{dslAbbreviation: h.dslAbbreviation} //nolint:gosimple
file, err = jsonParser.ParseFile(content, fileName)
if file != nil || err != nil {
return file, err
Expand Down
2 changes: 1 addition & 1 deletion variable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (s *variableSuite) TestReadValueFromEnv() {
}
for _, c := range cases {
s.Run(c.desc, func() {
s.T().Setenv(fmt.Sprintf("FT_VAR_test"), c.valueString)
s.T().Setenv("FT_VAR_test", c.valueString)
config, err := NewDummyConfig(".", context.TODO(), nil, nil)
require.NoError(s.T(), err)
sut := &VariableBlock{
Expand Down

0 comments on commit b3dbf09

Please sign in to comment.