Skip to content

Commit b1bdc03

Browse files
committed
Simplified handling of de-duplication of cache hit messages
This equivalent change moves the 'first' variable closer to his definition and use.
1 parent b35bb6c commit b1bdc03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/arduino/builder/internal/detector/detector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ func (l *SketchLibrariesDetector) findIncludesUntilDone(
345345
if first && l.logger.Verbose() {
346346
l.logger.Info(i18n.Tr("Using cached library dependencies for file: %[1]s", sourcePath))
347347
}
348+
first = false
348349
} else {
349350
preprocFirstResult, preprocErr = preprocessor.GCC(ctx, sourcePath, targetFilePath, includeFolders, buildProperties)
350351
if l.logger.Verbose() {
@@ -414,7 +415,6 @@ func (l *SketchLibrariesDetector) findIncludesUntilDone(
414415
library.SourceDir, librariesBuildPath.Join(library.DirName), library.UtilityDir)
415416
}
416417
}
417-
first = false
418418
}
419419
}
420420

0 commit comments

Comments
 (0)