From a29c54c06890eb10f175fcb4bc1b65ac2336ceef Mon Sep 17 00:00:00 2001 From: Alessio Date: Wed, 21 Feb 2024 19:55:47 -0800 Subject: [PATCH] Fix lint errors --- cmd/twitter/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/twitter/main.go b/cmd/twitter/main.go index 192b3c1..2df7cae 100644 --- a/cmd/twitter/main.go +++ b/cmd/twitter/main.go @@ -1,11 +1,11 @@ package main import ( + "errors" "flag" "fmt" log "github.com/sirupsen/logrus" "golang.org/x/term" - "errors" "io/fs" "os" "strconv" @@ -94,7 +94,7 @@ func main() { if *use_default_profile { 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()