Commit c7aafbb
authored
fix(Dr. Rai Reports): Fix early return (#5696)
**Story card:**
[sc-16738](https://app.shortcut.com/simpledotorg/story/16738/handle-null-case-for-indicator-datasource)
## Because
The early return was not properly written
```ruby
def something flag: false
0 if flag
calculate!
end
```
This :point-up: is the original form of the method; which is wrong. The
intention is to return early.
## This addresses
Returning early where necessary
## Test instructions
suite tests1 parent bf02150 commit c7aafbb
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments