Mistress Emelia is a user on switter.at. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Mistress Emelia @MistressEmelia

Okay devs, how can I make this code pass the linting errors without being confusing to read?

The warning is about using the return value for the if — should I just put this in it's own method?

· Web · 0 · 1 · 4 · Reply

@MistressEmelia this if is the last thing in a method?

will it be satisfied if you explicitly return sensitive instead of returning the if?

@MistressEmelia
I always do a separate method for that kind of thing.

@MistressEmelia Which language is this? You're assuming that value is boolean. What if it isn't? XD if that was a strongly typed language that would be your issue. I know it probably isn't but something to look at?

@allisonrei that'd be ruby; I rewrote it though. And then got horribly confused because my brain really does not bode well with matrixes of boolean logic.