Skip to content

Commit 735d11c

Browse files
author
Kevin Wiesmüller
committed
fix nits
1 parent 2093f47 commit 735d11c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

typed/remove.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,8 @@ func (w *removingWalker) doMap(t *schema.Map) ValidationErrors {
8989
pe := fieldpath.PathElement{FieldName: &k}
9090
path, _ := fieldpath.MakePath(pe)
9191

92-
if w.deep {
93-
if w.toRemove.Has(path) {
94-
return true
95-
}
92+
if w.deep && w.toRemove.Has(path) {
93+
return true
9694
}
9795

9896
fieldType := t.ElementType

value/value.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func Equals(lhs, rhs Value) bool {
187187
return true
188188
}
189189

190-
// ToString returns a human-readable representation of the value.
190+
// String returns a human-readable representation of the value.
191191
func ToString(v Value) string {
192192
if v.IsNull() {
193193
return "null"

0 commit comments

Comments
 (0)