mirror of
https://github.com/daveberrys/guh.git
synced 2026-11-29 00:56:45 +08:00
any errors goes one liners
This commit is contained in:
1 parent
9a80548ecc
commit
ad0dc7c89d
5 files changed
+31
-19
No files matched your search
+1
-3
@@ -42,9 +42,7 @@ var createAccountCmd = &cobra.Command{
|
||||
return fmt.Errorf("username, email, and classicToken are required")
|
||||
}
|
||||
|
||||
if err := utils.UpsertAccount(account); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := utils.UpsertAccount(account); err != nil { return err }
|
||||
|
||||
fmt.Printf("Saved account: %s\n", account.Username)
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user