Skip to content

Commit c9d2503

Browse files
committed
Made BuildOptions private
1 parent 1f39726 commit c9d2503

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

arduino/builder/build_options_manager.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import (
2828
"github.com/pkg/errors"
2929
)
3030

31-
// BuildOptions fixdoc
32-
type BuildOptions struct {
31+
// buildOptions fixdoc
32+
type buildOptions struct {
3333
currentOptions *properties.Map
3434

3535
hardwareDirs paths.PathList
@@ -45,8 +45,8 @@ type BuildOptions struct {
4545
clean bool
4646
}
4747

48-
// NewBuildOptionsManager fixdoc
49-
func NewBuildOptionsManager(
48+
// newBuildOptions fixdoc
49+
func newBuildOptions(
5050
hardwareDirs, builtInToolsDirs, otherLibrariesDirs paths.PathList,
5151
builtInLibrariesDirs, buildPath *paths.Path,
5252
sketch *sketch.Sketch,
@@ -55,7 +55,7 @@ func NewBuildOptionsManager(
5555
clean bool,
5656
compilerOptimizationFlags string,
5757
runtimePlatformPath, buildCorePath *paths.Path,
58-
) *BuildOptions {
58+
) *buildOptions {
5959
opts := properties.NewMap()
6060

6161
opts.Set("hardwareFolders", strings.Join(hardwareDirs.AsStrings(), ","))
@@ -81,7 +81,7 @@ func NewBuildOptionsManager(
8181
}
8282
opts.Set("additionalFiles", strings.Join(additionalFilesRelative, ","))
8383

84-
return &BuildOptions{
84+
return &buildOptions{
8585
currentOptions: opts,
8686
hardwareDirs: hardwareDirs,
8787
builtInToolsDirs: builtInToolsDirs,

arduino/builder/builder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ type Builder struct {
7979

8080
buildArtifacts *BuildArtifacts
8181

82-
buildOptions *BuildOptions
82+
buildOptions *buildOptions
8383

8484
*detector.SketchLibrariesDetector
8585
}
@@ -208,7 +208,7 @@ func NewBuilder(
208208
onlyUpdateCompilationDatabase,
209209
logger,
210210
),
211-
buildOptions: NewBuildOptionsManager(
211+
buildOptions: newBuildOptions(
212212
hardwareDirs, builtInToolsDirs, otherLibrariesDirs,
213213
builtInLibrariesDirs, buildPath,
214214
sk,

0 commit comments

Comments
 (0)