Skip to content

Commit

Permalink
check err
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv committed Sep 22, 2023
1 parent c636ef3 commit 7544238
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ func main() {
home := os.Getenv("HOME")
profileFileLocation := getenv("AWS_CONFIG_FILE", fmt.Sprintf("%s/.aws/config", home))
profiles := getProfiles(profileFileLocation)
touchFile(fmt.Sprintf("%s/.awsd", home))
touch, err := touchFile(fmt.Sprintf("%s/.awsd", home))

Check failure on line 37 in main.go

View workflow job for this annotation

GitHub Actions / lint

assignment mismatch: 2 variables but touchFile returns 1 value (typecheck)
if err != nil {
log.Fatal(err)
}

fmt.Printf(NoticeColor, "AWS Profile Switcher\n")
prompt := promptui.Select{
Expand Down

0 comments on commit 7544238

Please sign in to comment.