Commit a5d601d
committed
Fix crash when using stats command
Previously the stats command checked if the args slice was not nil, and
then tried to access the first element. We should instead be checking if
the slice has length > 0, as an empty slice passes the original check.
Signed-off-by: Kevin Parsons <[email protected]>1 parent ead8d31 commit a5d601d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments