Skip to content

Commit

Permalink
Merge pull request #345 from mgrachev/feature/fix-typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
michaelsauter committed Apr 23, 2019
2 parents 1030a69 + 0433402 commit ecc7501
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crane/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ func (h *hooks) PostStop() string {
}

// Merge another set of hooks into the existing object. Existing
// hooks will be overriden if the corresponding hooks from the
// hooks will be overridden if the corresponding hooks from the
// source struct are defined. Returns true if some content was
// overiden in the process.
func (h *hooks) CopyFrom(source hooks) (overriden bool) {
func (h *hooks) CopyFrom(source hooks) (overridden bool) {
overrideIfFromNotEmpty := func(from string, to *string) {
if from != "" {
overriden = overriden || *to != ""
overridden = overridden || *to != ""
*to = from
}
}
Expand Down

0 comments on commit ecc7501

Please sign in to comment.