Skip to content

Commit c571095

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 8b6c1be commit c571095

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
@@ -348,6 +348,7 @@ func (l *SketchLibrariesDetector) findIncludesUntilDone(
348348
if first && l.logger.VerbosityLevel() == logger.VerbosityVerbose {
349349
l.logger.Info(i18n.Tr("Using cached library dependencies for file: %[1]s", sourcePath))
350350
}
351+
first = false
351352
} else {
352353
preprocFirstResult, preprocErr = preprocessor.GCC(ctx, sourcePath, targetFilePath, includeFolders, buildProperties)
353354
if l.logger.VerbosityLevel() == logger.VerbosityVerbose {
@@ -417,7 +418,6 @@ func (l *SketchLibrariesDetector) findIncludesUntilDone(
417418
library.SourceDir, librariesBuildPath.Join(library.DirName), library.UtilityDir)
418419
}
419420
}
420-
first = false
421421
}
422422
}
423423

0 commit comments

Comments
 (0)