Commit da90f62
authored
Decode of nil data (#8179)
## What changed?
Don't catch `Data: nil` in test; let it fall through to decoder. The
decoder will return an error. An error is the better choice than a `nil`
response since that signals to the user that the decoded data is
usable/valid.
## Why?
Follow-up to #8111; an
internal test expects an error instead of `nil`.
## How did you test it?
- [ ] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [x] added new unit test(s)
- [ ] added new functional test(s)
## Potential risks
Hard to believe that returning nil and using un-decoded data is a
good/valid alternative.1 parent b8497fa commit da90f62
2 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 52 | | |
56 | 53 | | |
57 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
45 | 55 | | |
46 | 56 | | |
47 | 57 | | |
| |||
0 commit comments