* decodeObjectVersion - decode object version to be deleted * @param {object} entry - entry from data model * @param {function} next - callback to call with error or decoded version * @return {undefined}
(entry)
| 180 | * @return {undefined} |
| 181 | **/ |
| 182 | function decodeObjectVersion(entry) { |
| 183 | let decodedVersionId; |
| 184 | if (entry.versionId) { |
| 185 | decodedVersionId = entry.versionId === 'null' ? |
| 186 | 'null' : versionIdUtils.decode(entry.versionId); |
| 187 | } |
| 188 | if (decodedVersionId instanceof Error) { |
| 189 | return [errors.NoSuchVersion]; |
| 190 | } |
| 191 | return [null, decodedVersionId]; |
| 192 | } |
| 193 | |
| 194 | /** |
| 195 | * Initialization function for the MultiObjectDelete API that will, based on the |
no outgoing calls
no test coverage detected