Skip to content

Commit e35d9ed

Browse files
committed
Renamed variable for lint checks
1 parent e284509 commit e35d9ed

File tree

1 file changed

+5
-5
lines changed
  • arduino/builder/preprocessor

1 file changed

+5
-5
lines changed

Diff for: arduino/builder/preprocessor/gcc.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ func GCC(sourceFilePath *paths.Path, targetFilePath *paths.Path, includes paths.
3939
includesStrings := f.Map(includes.AsStrings(), utils.WrapWithHyphenI)
4040
gccBuildProperties.Set("includes", strings.Join(includesStrings, " "))
4141

42-
const GCC_PATTERN_PROPERTY = "recipe.preproc.macros"
43-
if gccBuildProperties.Get(GCC_PATTERN_PROPERTY) == "" {
42+
const gccPreprocRecipeProperty = "recipe.preproc.macros"
43+
if gccBuildProperties.Get(gccPreprocRecipeProperty) == "" {
4444
// autogenerate preprocess macros recipe from compile recipe
4545
preprocPattern := gccBuildProperties.Get("recipe.cpp.o.pattern")
4646
// add {preproc.macros.flags} to {compiler.cpp.flags}
4747
preprocPattern = strings.Replace(preprocPattern, "{compiler.cpp.flags}", "{compiler.cpp.flags} {preproc.macros.flags}", 1)
4848
// replace "{object_file}" with "{preprocessed_file_path}"
4949
preprocPattern = strings.Replace(preprocPattern, "{object_file}", "{preprocessed_file_path}", 1)
5050

51-
gccBuildProperties.Set(GCC_PATTERN_PROPERTY, preprocPattern)
51+
gccBuildProperties.Set(gccPreprocRecipeProperty, preprocPattern)
5252
}
5353

54-
pattern := gccBuildProperties.Get(GCC_PATTERN_PROPERTY)
54+
pattern := gccBuildProperties.Get(gccPreprocRecipeProperty)
5555
if pattern == "" {
56-
return nil, nil, errors.Errorf(tr("%s pattern is missing"), GCC_PATTERN_PROPERTY)
56+
return nil, nil, errors.Errorf(tr("%s pattern is missing"), gccPreprocRecipeProperty)
5757
}
5858

5959
commandLine := gccBuildProperties.ExpandPropsInString(pattern)

0 commit comments

Comments
 (0)