Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
KaloyanTanev committed Dec 12, 2024
1 parent fda5ac8 commit 3a93d77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cluster/definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,15 +359,15 @@ func (d Definition) SetDefinitionHashes() (Definition, error) {
return Definition{}, errors.Wrap(err, "config hash")
}

d.ConfigHash = configHash[:] //nolint: revive // okay to assign to by-value receiver as we return the struct
d.ConfigHash = configHash[:]

// Marshal definition hashDefinition
defHash, err := hashDefinition(d, false)
if err != nil {
return Definition{}, errors.Wrap(err, "definition hashDefinition")
}

d.DefinitionHash = defHash[:] //nolint: revive // okay to assign to by-value receiver as we return the struct
d.DefinitionHash = defHash[:]

return d, nil
}
Expand Down
2 changes: 1 addition & 1 deletion cluster/lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (l Lock) SetLockHash() (Lock, error) {
return Lock{}, err
}

l.LockHash = lockHash[:] //nolint: revive // okay to assign to by-value receiver as we return the struct
l.LockHash = lockHash[:]

return l, nil
}
Expand Down

0 comments on commit 3a93d77

Please sign in to comment.