Skip to content

Commit

Permalink
Fixed linter issue and account server url not always being set
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Hanel <mh@synadia.com>
  • Loading branch information
matthiashanel committed Mar 9, 2021
1 parent 65652fd commit 5e28fbb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/editoperator.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (p *EditOperatorParams) Load(ctx ActionCtx) error {
p.sysAcc = oc.SystemAccount
}

if p.reqSk == false {
if !p.reqSk {
p.reqSk = oc.StrictSigningKeyUsage
}

Expand Down Expand Up @@ -264,11 +264,11 @@ func (p *EditOperatorParams) Run(ctx ActionCtx) (store.Status, error) {
if p.claim.StrictSigningKeyUsage != p.reqSk {
p.claim.StrictSigningKeyUsage = p.reqSk
r.AddOK("strict signing key usage set to: %t", p.reqSk)
flags := ctx.CurrentCmd().Flags()
p.claim.AccountServerURL = p.asu
if flags.Changed("account-jwt-server-url") {
r.AddOK("set account jwt server url to %q", p.asu)
}
}
flags := ctx.CurrentCmd().Flags()
p.claim.AccountServerURL = p.asu
if flags.Changed("account-jwt-server-url") {
r.AddOK("set account jwt server url to %q", p.asu)
}

if p.claim.SystemAccount != p.sysAcc {
Expand Down

0 comments on commit 5e28fbb

Please sign in to comment.