Commit 6c6b3a2
authored
Fix nil pointer dereferences during error handling (#364)
* Fix error handling when deleting deploy key
There was the possibility of a panic if response was nil, and the GitLab client already treats the 204 code as a success, so the extra check was not needed.
* Fix nil pointer dereference issues in error messages1 parent 811dbf5 commit 6c6b3a2
File tree
3 files changed
+9
-13
lines changed- gitlab
3 files changed
+9
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | 103 | | |
108 | 104 | | |
109 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
169 | | - | |
| 167 | + | |
| 168 | + | |
170 | 169 | | |
171 | | - | |
| 170 | + | |
| 171 | + | |
172 | 172 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
| 125 | + | |
| 126 | + | |
128 | 127 | | |
129 | | - | |
| 128 | + | |
| 129 | + | |
130 | 130 | | |
0 commit comments