diff --git a/var_file_parser.go b/var_file_parser.go index 7af63d6..a59e3d7 100644 --- a/var_file_parser.go +++ b/var_file_parser.go @@ -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 diff --git a/variable_test.go b/variable_test.go index 1f38070..ae14e5d 100644 --- a/variable_test.go +++ b/variable_test.go @@ -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{