Commit 2a2743f
committed
refactor(data): drop unreachable nil branch in SaveAttestationBundle
ent's UpdateOneID returns a NotFoundError (never a nil run alongside a
nil error) when the row is missing, so the extra `run == nil` check was
dead code carried over from the previous SaveAttestation implementation.
Switch to Exec since the returned row was unused.
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>1 parent a277c38 commit 2a2743f
1 file changed
Lines changed: 3 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
| 210 | + | |
214 | 211 | | |
215 | 212 | | |
216 | 213 | | |
217 | 214 | | |
218 | 215 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | 216 | | |
223 | | - | |
224 | | - | |
225 | | - | |
| 217 | + | |
226 | 218 | | |
227 | 219 | | |
228 | 220 | | |
| |||
0 commit comments