Skip to content

Commit be81a9e

Browse files
committed
fix(release): check that file.content is not empty
1 parent a6499c5 commit be81a9e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

workers/release/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,10 @@ export default class ReleaseWorker extends Worker {
282282
*/
283283
private saveFile(file: SourceMapDataExtended): Promise<SourceMapFileChunk> {
284284
return new Promise((resolve, reject) => {
285+
if (!file.content) {
286+
return reject(new Error('Source map content is empty'));
287+
}
288+
285289
const readable = Readable.from([ file.content ]);
286290
const writeStream = this.db.getBucket().openUploadStream(file.mapFileName);
287291

0 commit comments

Comments
 (0)