Commit c39c4980 authored by Mattia Bertorello's avatar Mattia Bertorello

Fixed all the problem reported by varcheck (unused variables)

parent 40264832
......@@ -28,6 +28,4 @@ linters:
- lll
- maligned
- megacheck
- prealloc
- unparam
- varcheck
......@@ -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`")
......
......@@ -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{
......
......@@ -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{})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment