Skip to content

Commit b73a681

Browse files
appease golint
1 parent 2f9979c commit b73a681

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Diff for: arduino/builder/builder.go

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ package builder
1717

1818
import "github.com/arduino/arduino-cli/arduino/sketch"
1919

20+
// nolint
2021
const (
2122
BuildPropertiesArchiveFile = "archive_file"
2223
BuildPropertiesArchiveFilePath = "archive_file_path"

Diff for: arduino/builder/progress/progress.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
package progress
22

3+
// Struct fixdoc
34
type Struct struct {
45
Progress float32
56
StepAmount float32
67
Parent *Struct
78
}
89

10+
// AddSubSteps fixdoc
911
func (p *Struct) AddSubSteps(steps int) {
1012
p.Parent = &Struct{
1113
Progress: p.Progress,
@@ -18,12 +20,14 @@ func (p *Struct) AddSubSteps(steps int) {
1820
p.StepAmount /= float32(steps)
1921
}
2022

23+
// RemoveSubSteps fixdoc
2124
func (p *Struct) RemoveSubSteps() {
2225
p.Progress = p.Parent.Progress
2326
p.StepAmount = p.Parent.StepAmount
2427
p.Parent = p.Parent.Parent
2528
}
2629

30+
// CompleteStep fixdoc
2731
func (p *Struct) CompleteStep() {
2832
p.Progress += p.StepAmount
2933
}

Diff for: arduino/builder/utils/utils.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ func FindFilesInFolder(dir *paths.Path, recurse bool, extensions ...string) (pat
195195
return dir.ReadDir(fileFilter)
196196
}
197197

198+
// nolint
198199
const (
199200
Ignore = 0 // Redirect to null
200201
Show = 1 // Show on stdout/stderr as normal
@@ -207,9 +208,8 @@ func printableArgument(arg string) string {
207208
arg = strings.ReplaceAll(arg, "\\", "\\\\")
208209
arg = strings.ReplaceAll(arg, "\"", "\\\"")
209210
return "\"" + arg + "\""
210-
} else {
211-
return arg
212211
}
212+
return arg
213213
}
214214

215215
// Convert a command and argument slice back to a printable string.

0 commit comments

Comments
 (0)