aboutsummaryrefslogtreecommitdiffstats
path: root/commands/bridge_token_rm.go
diff options
context:
space:
mode:
authoramine <hilalyamine@gmail.com>2019-11-08 14:49:24 +0100
committeramine <hilalyamine@gmail.com>2019-11-09 14:52:20 +0100
commitbbbf3c6c7f245ea2ddc9d31639e7ebac50eeac2d (patch)
tree17883d25b5d1f2f1b1fe2f2bf33b44d1259b938e /commands/bridge_token_rm.go
parent4dc7b8b06ed5d48eca077b81a0b8c90777b8fe82 (diff)
downloadgit-bug-bbbf3c6c7f245ea2ddc9d31639e7ebac50eeac2d.tar.gz
bridge/core: store token in the global config and replace scopes with create date
Diffstat (limited to 'commands/bridge_token_rm.go')
-rw-r--r--commands/bridge_token_rm.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/commands/bridge_token_rm.go b/commands/bridge_token_rm.go
index 29fdb4f2..7296f95a 100644
--- a/commands/bridge_token_rm.go
+++ b/commands/bridge_token_rm.go
@@ -7,13 +7,7 @@ import (
)
func runBridgeTokenRm(cmd *cobra.Command, args []string) error {
- err := core.RemoveToken(repo, args[0])
- if err == nil {
- return nil
- }
-
- err = core.RemoveGlobalToken(repo, args[0])
- return err
+ return core.RemoveToken(repo, args[0])
}
var bridgeTokenRmCmd = &cobra.Command{