From 1e126dd3813e4d7708dd6292f00e690d555281ed Mon Sep 17 00:00:00 2001 From: obvionaoe Date: Fri, 26 Apr 2024 02:06:27 +0100 Subject: [PATCH] Fix lint --- cmd/root.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index d2af01d..a8c86f2 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -28,10 +28,9 @@ import ( ) var ( - browser string - browserProfilesFile string - sort bool - rofiCmd string + browser string + sort bool + rofiCmd string ) // rootCmd represents the base command when called without any subcommands @@ -85,6 +84,10 @@ func run(cmd *cobra.Command, args []string) { } profilesFile, err := expandTilde(profilesFile) + if err != nil { + log.Fatal(err) + } + profiles, err := getProfiles(profilesFile) if err != nil { log.Fatal(err)