From b6798ee8676c48f86b0bd8581ea244f4be4ef3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 20 Mar 2018 21:13:44 +0100 Subject: Bump some deprecations --- resource/resource.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'resource') diff --git a/resource/resource.go b/resource/resource.go index 8627d93c4..2732f8b37 100644 --- a/resource/resource.go +++ b/resource/resource.go @@ -116,7 +116,7 @@ Some examples: // "logo" will match logo.png. It returns nil of none found. // In potential ambiguous situations, combine it with ByType. func (r Resources) GetByPrefix(prefix string) Resource { - helpers.Deprecated("Resources", "GetByPrefix", prefixDeprecatedMsg, false) + helpers.Deprecated("Resources", "GetByPrefix", prefixDeprecatedMsg, true) prefix = strings.ToLower(prefix) for _, resource := range r { if matchesPrefix(resource, prefix) { @@ -129,7 +129,7 @@ func (r Resources) GetByPrefix(prefix string) Resource { // ByPrefix gets all resources matching the given base filename prefix, e.g // "logo" will match logo.png. func (r Resources) ByPrefix(prefix string) Resources { - helpers.Deprecated("Resources", "ByPrefix", prefixDeprecatedMsg, false) + helpers.Deprecated("Resources", "ByPrefix", prefixDeprecatedMsg, true) var matches Resources prefix = strings.ToLower(prefix) for _, resource := range r { -- cgit v1.2.3