My guess is that maybe they didn't understand that you can do
it?.text = ...
l
louiscad
11/10/2020, 3:24 PM
Depends on if the view is always present or not
i
Irving Rivas
11/10/2020, 3:51 PM
I would request a change — specially since it’s a textview you’re getting; fat chance of putting more stuff in the
let
block later. Since it’s very cut and dry — it’s literally an unnecessary code block — it’s best not to allow the codebase to get littered by these.
👍 2
Irving Rivas
11/10/2020, 3:53 PM
now, on the other hand, I’d look at the context in the code; the customs of the codebase make it easier to scan, and they should be respected. If there are many similar snippets all over, either open a ticket for those to be brought in line with “don’t use let”, or for everything to go to the “possibly unnecessary let” style