Skip to content

Commit

Permalink
make some builder method private
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-perugini committed Oct 2, 2023
1 parent b7361e9 commit 9dda230
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions arduino/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down
8 changes: 4 additions & 4 deletions arduino/builder/sketch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 9dda230

Please sign in to comment.