Commit eab8950
committed
Fix unreachable nil checks in SelectOrganization
Changed SelectOrganization() to return (nil, nil) instead of (nil, error)
when no organizations are found. This allows the nil checks in login.go
and switch.go to be reachable, enabling the friendly error message in
login.go to be displayed as intended.1 parent 21a68d3 commit eab8950
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments