| 109 | }; |
| 110 | |
| 111 | const resolveBufferImage = buffer => { |
| 112 | const format = guessFormat(buffer); |
| 113 | |
| 114 | if (format) { |
| 115 | return new Promise(resolve => resolve(getImage(buffer, format))); |
| 116 | } |
| 117 | |
| 118 | return Promise.resolve(); |
| 119 | }; |
| 120 | |
| 121 | const getImageFormat = body => { |
| 122 | const isPng = |
no test coverage detected