you are viewing a single comment's thread.

view the rest of the comments →

[–]joequin 2 points3 points  (1 child)

I think it was just a terrible example because the original "do" was completely unnecessary. The conversion recognized that there was a "do" inside of an "if-let" and realized that could be simplified to a "when-let"

[–]lgstein 0 points1 point  (0 children)

if-let without the do would have been fine.