discourse/lib/wizard
Sam Saffron 0a5a6dfded DEV: stop mutating inputs as a side effect
We had quite a few cases in core where inputs are being mutated as a side
effect of calling a method.

This handles all the cases where specs caught this.

Mutating inputs makes code harder to reason about. Eg:

```
frog = "frog"
jump(frog)
puts frog
"fly" # ?????
```

This commit is part of a followup commit that adds # frozen_string_literal
to all our specs.
2019-04-30 10:25:53 +10:00
..
builder.rb FEATURE: better wizard privacy controls (#7391) 2019-04-22 19:47:29 +05:30
field.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
step.rb FIX: Wizard tries harder to find existing Welcome Topic 2018-12-06 10:27:22 +01:00
step_updater.rb DEV: stop mutating inputs as a side effect 2019-04-30 10:25:53 +10:00