Commit 390990b
committed
Fix handling of missing data in GetAllCredentials
- Don't check for credentials.IsErrCredentialsNotFoundMessage,
which is handled by GetCredentials and is not reachable here
- Do check for an empty struct, which is the outcome of that
handling. Don't add that empty struct, meaning "nothing found",
to the returned data.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>1 parent 05bf651 commit 390990b
2 files changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | 193 | | |
198 | 194 | | |
199 | 195 | | |
200 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
201 | 199 | | |
202 | 200 | | |
203 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
555 | | - | |
| 554 | + | |
556 | 555 | | |
557 | 556 | | |
558 | 557 | | |
| |||
0 commit comments