Commit 1a22a35
committed
lint: enable exhaustive, gocritic, nilerr
In this commit, we enable extra linters to check for non-exhaustive
switch statements, and if-else or switch statements that can be
simplified. We also check for improper error returns and other small
simplifications.1 parent 10f0e3a commit 1a22a35
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | | - | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| |||
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
37 | 49 | | |
38 | 50 | | |
39 | 51 | | |
| |||
0 commit comments