This repository was archived by the owner on Aug 1, 2023. It is now read-only.
Commit 4b779e5
imageservice: Don't hide error in Extract functions
The following functions where returning a
decoded result and the error of the decoding
operation without checking if the original
result contains an error already:
func (c CreateResult) Extract() (*Image, error)
func (c GetResult) Extract() (*Image, error)
func (u UpdateResult) Extract() (*Image, error)
Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>1 parent e8e5597 commit 4b779e5
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
94 | 100 | | |
95 | 101 | | |
96 | 102 | | |
| |||
104 | 110 | | |
105 | 111 | | |
106 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
107 | 116 | | |
108 | 117 | | |
109 | 118 | | |
| |||
0 commit comments