Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#874 from CodeLingoBot/rewrite
Browse files Browse the repository at this point in the history
Fix function comments based on best practices from Effective Go
  • Loading branch information
k8s-ci-robot authored Mar 12, 2019
2 parents a94eab0 + 9a4692e commit 9a41982
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (r *Resource) Behavior() types.GenerationBehavior {
return r.options.Behavior()
}

// NeedAppendHash checks if the resource need a hash suffix
// NeedHashSuffix checks if the resource need a hash suffix
func (r *Resource) NeedHashSuffix() bool {
return r.options != nil && r.options.NeedsHashSuffix()
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/types/genargs.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (g *GenArgs) String() string {
"}"
}

// NeedHashSuffix returns true if the hash suffix is needed.
// NeedsHashSuffix returns true if the hash suffix is needed.
// It is needed when the two conditions are both met
// 1) GenArgs is not nil
// 2) DisableNameSuffixHash in GeneratorOptions is not set to true
Expand Down

0 comments on commit 9a41982

Please sign in to comment.