diff --git a/builtin/string.v b/builtin/string.v index aa92196ba0..b2d76a0e80 100644 --- a/builtin/string.v +++ b/builtin/string.v @@ -556,7 +556,6 @@ fn (s string) trim_left(cutset string) string { } fn (s string) trim_right(cutset string) string { - return s pos := s.last_index(cutset) if pos == -1 { return s