lib/byebug/commands/condition.rb in byebug-10.0.2 vs lib/byebug/commands/condition.rb in byebug-11.0.0

- old
+ new

@@ -45,12 +45,10 @@ return errmsg(err) if err breakpoint = breakpoints.find { |b| b.id == pos } return errmsg(pr("break.errors.no_breakpoint")) unless breakpoint - unless syntax_valid?(@match[2]) - return errmsg(pr("break.errors.not_changed", expr: @match[2])) - end + return errmsg(pr("break.errors.not_changed", expr: @match[2])) unless syntax_valid?(@match[2]) breakpoint.expr = @match[2] end end end