Skip to content

Commit 9c29ace

Browse files
fix(common): remove leftovers
1 parent 32ddc82 commit 9c29ace

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Diff for: packages/common/pipes/file/file-type.validator.ts

-13
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,6 @@ export class FileTypeValidator extends FileValidator<
2525
FileTypeValidatorOptions,
2626
IFile
2727
> {
28-
constructor(validationOptions: FileTypeValidatorOptions) {
29-
super(validationOptions);
30-
31-
// check if file-type is installed
32-
try {
33-
require.resolve('file-type');
34-
} catch (e) {
35-
throw new Error(
36-
`FileTypeValidator requires the file-type package. Please install it: npm i file-type`,
37-
);
38-
}
39-
}
40-
4128
buildErrorMessage(file?: IFile): string {
4229
if (file?.mimetype) {
4330
return `Validation failed (current file type is ${file.mimetype}, expected type is ${this.validationOptions.fileType})`;

0 commit comments

Comments
 (0)