When it comes to code:
* 0.5
19.2%
/ 2
80.8%
Poll ended at .
You have a constant that’s used in only one place. You
Add a comment to explain what it represents
25%
Assign it so it gets a name
75%
Poll ended at .
The stuff your program operates over are:
Entities
45.8%
Models
54.2%
Poll ended at .

```
if let result { return result.union(frame) }
else { return frame }
```

or

```
guard let result else { return frame }
return result.union(frame)
```

If else
50%
Guard
50%
Poll ended at .

@RosaCtrl I prefer guards for the reasons described here: https://testing.googleblog.com/2017/06/code-health-reduce-nesting-reduce.html

The TotT series is a pretty good resource from the times people still cared.

Code Health: Reduce Nesting, Reduce Complexity

This is another post in our Code Health series. A version of this post originally appeared in Google bathrooms worldwide as a Google Testin...

Google Testing Blog
@mlen right, I often go with guards, but in this tiny snippet I think if is more obvious