aboutsummaryrefslogtreecommitdiff
path: root/pkg/config/body.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pkg/config/body.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/config/body.go b/pkg/config/body.go
index 3b2f676..17cf924 100644
--- a/pkg/config/body.go
+++ b/pkg/config/body.go
@@ -22,7 +22,7 @@ func (b *Body) UnmarshalYAML(node *yaml.Node) error {
val = "default"
}
- if !util.StrContains(validBody, val) {
+ if !util.Contains(validBody, val) {
return TypeError("line %d: Invalid value for 'body': %q", node.Line, val)
}
@@ -30,6 +30,6 @@ func (b *Body) UnmarshalYAML(node *yaml.Node) error {
return nil
}
-func TypeError(format string, v ...interface{}) *yaml.TypeError {
+func TypeError(format string, v ...any) *yaml.TypeError {
return &yaml.TypeError{Errors: []string{fmt.Sprintf(format, v...)}}
}