Skip to content

Commit

Permalink
Address code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team committed Sep 26, 2023
1 parent 53fa7c0 commit 1ad4cba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/services/compare.mts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export class CompareService {
}

public async upload(files: Express.Multer.File[]): Promise<string> {
if (!Array.isArray(files)) {
throw new TypeError('"files" must be an array');
}

if (files.length < 2) {
throw new Error('Need at least two files');
}
Expand Down

0 comments on commit 1ad4cba

Please sign in to comment.