Skip to content

Commit

Permalink
mattermost-communityGH-30 change to err idiomatic approach
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorgabucio committed Oct 9, 2020
1 parent a99e504 commit a31cbb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ func (p *Plugin) OnActivate() error {
return errors.Wrap(appErr, "failed to set profile image")
}

if cmdErr := p.API.RegisterCommand(getCommand()); cmdErr != nil {
p.API.LogWarn("Error registering Jenkins custom command", "err", cmdErr)
if err := p.API.RegisterCommand(getCommand()); err != nil {
p.API.LogWarn("Error registering Jenkins custom command", "err", err)
}

p.router = p.InitAPI()
Expand Down

0 comments on commit a31cbb5

Please sign in to comment.