From 9dda23020da1cfddc77ab74f43326719fa552d73 Mon Sep 17 00:00:00 2001 From: Alessio Perugini Date: Tue, 26 Sep 2023 19:28:27 +0200 Subject: [PATCH] make some builder method private --- arduino/builder/builder.go | 4 ++-- arduino/builder/sketch.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arduino/builder/builder.go b/arduino/builder/builder.go index 2c058456f74..06ab9662676 100644 --- a/arduino/builder/builder.go +++ b/arduino/builder/builder.go @@ -375,7 +375,7 @@ func (b *Builder) build() error { b.Progress.CompleteStep() b.Progress.PushProgress() - if err := b.BuildSketch(b.libsDetector.IncludeFolders()); err != nil { + if err := b.buildSketch(b.libsDetector.IncludeFolders()); err != nil { return err } b.Progress.CompleteStep() @@ -468,7 +468,7 @@ func (b *Builder) build() error { b.Progress.CompleteStep() b.Progress.PushProgress() - if err := b.MergeSketchWithBootloader(); err != nil { + if err := b.mergeSketchWithBootloader(); err != nil { return err } b.Progress.CompleteStep() diff --git a/arduino/builder/sketch.go b/arduino/builder/sketch.go index 46f2e82771e..3a7c21f3ded 100644 --- a/arduino/builder/sketch.go +++ b/arduino/builder/sketch.go @@ -173,8 +173,8 @@ func writeIfDifferent(source []byte, destPath *paths.Path) error { return nil } -// BuildSketch fixdoc -func (b *Builder) BuildSketch(includesFolders paths.PathList) error { +// buildSketch fixdoc +func (b *Builder) buildSketch(includesFolders paths.PathList) error { includes := f.Map(includesFolders.AsStrings(), cpp.WrapWithHyphenI) if err := b.sketchBuildPath.MkdirAll(); err != nil { @@ -208,8 +208,8 @@ func (b *Builder) BuildSketch(includesFolders paths.PathList) error { return nil } -// MergeSketchWithBootloader fixdoc -func (b *Builder) MergeSketchWithBootloader() error { +// mergeSketchWithBootloader fixdoc +func (b *Builder) mergeSketchWithBootloader() error { if b.onlyUpdateCompilationDatabase { return nil }