Skip to content

Commit

Permalink
Return struct instead of interface to avoid comparing interface with …
Browse files Browse the repository at this point in the history
…nil (#311)

Signed-off-by: Matthias Hanel <mh@synadia.com>
  • Loading branch information
matthiashanel authored Oct 27, 2020
1 parent a642215 commit 36a1f21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ func (p *InitCmdParams) setOperatorDefaults(ctx ActionCtx) error {
return nil
}

func (p *InitCmdParams) createAccount(ctx ActionCtx) (store.Status, error) {
func (p *InitCmdParams) createAccount(ctx ActionCtx) (*store.Report, error) {
var err error
p.Account.KP, err = nkeys.CreateAccount()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cmd/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ func (s *Store) handleManagedAccount(data []byte) (*Report, error) {
return r, nil
}

func (s *Store) StoreClaim(data []byte) (Status, error) {
func (s *Store) StoreClaim(data []byte) (*Report, error) {
ct, err := s.ClaimType(data)
if err != nil {
return nil, err
Expand Down

0 comments on commit 36a1f21

Please sign in to comment.