Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
c39c4980
Commit
c39c4980
authored
Aug 29, 2018
by
Mattia Bertorello
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed all the problem reported by varcheck (unused variables)
parent
40264832
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
12 deletions
+10
-12
.golangci.yml
.golangci.yml
+0
-2
commands/config/dump.go
commands/config/dump.go
+5
-4
commands/lib/uninstall.go
commands/lib/uninstall.go
+5
-4
common/formatter/formatter.go
common/formatter/formatter.go
+0
-2
No files found.
.golangci.yml
View file @
c39c4980
...
...
@@ -28,6 +28,4 @@ linters:
-
lll
-
maligned
-
megacheck
-
prealloc
-
unparam
-
varcheck
commands/config/dump.go
View file @
c39c4980
...
...
@@ -38,10 +38,11 @@ func initDumpCommand() *cobra.Command {
}
}
var
dumpFlags
struct
{
_default
bool
// If false, ask questions to the user about setting configuration properties, otherwise use default configuration.
location
string
// The custom location of the file to create.
}
// This struct is unused
//var dumpFlags struct {
// _default bool // If false, ask questions to the user about setting configuration properties, otherwise use default configuration.
// location string // The custom location of the file to create.
//}
func
runDumpCommand
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
logrus
.
Info
(
"Executing `arduino config dump`"
)
...
...
commands/lib/uninstall.go
View file @
c39c4980
...
...
@@ -27,10 +27,11 @@ import (
"github.com/spf13/cobra"
)
const
(
versionAll
string
=
"all"
versionLatest
string
=
"latest"
)
// These const are unused
//const (
// versionAll string = "all"
// versionLatest string = "latest"
//)
func
initUninstallCommand
()
*
cobra
.
Command
{
uninstallCommand
:=
&
cobra
.
Command
{
...
...
common/formatter/formatter.go
View file @
c39c4980
...
...
@@ -42,8 +42,6 @@ var defaultFormatter Formatter
var
logger
*
logrus
.
Logger
var
debug
bool
func
init
()
{
formatters
=
make
(
map
[
string
]
Formatter
,
2
)
AddCustomFormatter
(
"text"
,
&
TextFormatter
{})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment