Activate lint for unused code.

This commit is contained in:
Jeffrey Regan
2019-11-18 06:25:50 -08:00
parent 5381daf95a
commit 83db25d6c4
8 changed files with 20 additions and 20 deletions

View File

@@ -252,9 +252,10 @@ func (r *Resource) Behavior() types.GenerationBehavior {
return r.options.Behavior()
}
// NeedHashSuffix checks if the resource need a hash suffix
func (r *Resource) NeedHashSuffix() bool {
return r.options != nil && r.options.NeedsHashSuffix()
// ShouldAddHashSuffixToName returns true if a resource
// content hash should be appended to the name of the resource.
func (r *Resource) ShouldAddHashSuffixToName() bool {
return r.options != nil && r.options.ShouldAddHashSuffixToName()
}
// GetNamespace returns the namespace the resource thinks it's in.