diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-03-20 21:13:44 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-03-20 21:13:44 +0100 |
commit | b6798ee8676c48f86b0bd8581ea244f4be4ef3fa (patch) | |
tree | 249921c3d7c79a1692e0c36c924c771561e8999a /resource/resource.go | |
parent | 84f4b731d23bbcb1821eed46958bf73476f00543 (diff) |
Bump some deprecations
Diffstat (limited to 'resource/resource.go')
-rw-r--r-- | resource/resource.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |