Skip to content

Commit

Permalink
Switch to GlobalIsSet
Browse files Browse the repository at this point in the history
  • Loading branch information
maximbaz committed Nov 19, 2019
1 parent 252475f commit b27b814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/cli.go
Expand Up @@ -171,7 +171,7 @@ func send(c *cli.Context) (err error) {
if !c.IsSet("code") {
crocOptions.SharedSecret = rememberedOptions.SharedSecret
}
if !c.IsSet("pass") {
if !c.GlobalIsSet("pass") {
crocOptions.RelayPassword = rememberedOptions.RelayPassword
}
}
Expand Down Expand Up @@ -334,7 +334,7 @@ func receive(c *cli.Context) (err error) {
if crocOptions.SharedSecret == "" {
crocOptions.SharedSecret = rememberedOptions.SharedSecret
}
if !c.IsSet("pass") {
if !c.GlobalIsSet("pass") {
crocOptions.RelayPassword = rememberedOptions.RelayPassword
}
}
Expand Down

0 comments on commit b27b814

Please sign in to comment.