Fix lint errors
This commit is contained in:
parent
a5f1e8396e
commit
a29c54c068
@ -1,11 +1,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"errors"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"golang.org/x/term"
|
"golang.org/x/term"
|
||||||
"errors"
|
|
||||||
"io/fs"
|
"io/fs"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
@ -94,7 +94,7 @@ func main() {
|
|||||||
|
|
||||||
if *use_default_profile {
|
if *use_default_profile {
|
||||||
if *profile_dir != "." {
|
if *profile_dir != "." {
|
||||||
die(fmt.Sprintf("Invalid flags: either `--profile [...]` or `--default-profile` can be used, but not both"), true, 2)
|
die("Invalid flags: either `--profile [...]` or `--default-profile` can be used, but not both", true, 2)
|
||||||
}
|
}
|
||||||
*profile_dir = get_default_profile()
|
*profile_dir = get_default_profile()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user