mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
77d2fe7866
commit
93c5774dd7
1 changed files with 2 additions and 1 deletions
|
@ -25,6 +25,7 @@ import (
|
||||||
|
|
||||||
"github.com/spf13/cast"
|
"github.com/spf13/cast"
|
||||||
"github.com/spf13/hugo/deps"
|
"github.com/spf13/hugo/deps"
|
||||||
|
"github.com/spf13/hugo/helpers"
|
||||||
)
|
)
|
||||||
|
|
||||||
// New returns a new instance of the collections-namespaced template functions.
|
// New returns a new instance of the collections-namespaced template functions.
|
||||||
|
@ -371,7 +372,7 @@ func (ns *Namespace) IsSet(a interface{}, key interface{}) (bool, error) {
|
||||||
return av.MapIndex(kv).IsValid(), nil
|
return av.MapIndex(kv).IsValid(), nil
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
ns.deps.Log.FEEDBACK.Printf("WARNING: calling IsSet with unsupported type %q (%T) will always return false.\n", av.Kind(), a)
|
helpers.DistinctFeedbackLog.Printf("WARNING: calling IsSet with unsupported type %q (%T) will always return false.\n", av.Kind(), a)
|
||||||
}
|
}
|
||||||
|
|
||||||
return false, nil
|
return false, nil
|
||||||
|
|
Loading…
Reference in a new issue