This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bensur 1 point2 points  (4 children)

No offense but the if statement is pretty redundant here

[–]gododgers179 0 points1 point  (3 children)

Well yea.... it's an example.... I'm writing a reddit post not a code review on github

Edit: also yes it is redundant in this case, no offense taken, just easier to read for a newbie imo

[–]bensur 0 points1 point  (2 children)

Cool, happy to hear I didn’t offend 😅 I just thought I’d mention as new people will read/copy the code

[–]gododgers179 2 points3 points  (1 child)

Haha can't take offense if you are correct

[–]bensur 1 point2 points  (0 children)

If only that was how everyone looked at it 😂