Stop checking file extensions

Changelog-entry: Stop checking file extensions
Change-type: patch
This commit is contained in:
Alexis Svinartchouk
2020-05-27 17:27:09 +02:00
parent 4e08cf3879
commit 4752fa6dd2
8 changed files with 0 additions and 582 deletions

View File

@@ -266,17 +266,6 @@ export class SourceSelector extends React.Component<
hasMBR: boolean;
},
) {
if (!supportedFormats.isSupportedImage(image.path)) {
const invalidImageError = errors.createUserError({
title: 'Invalid image',
description: messages.error.invalidImage(image.path),
});
osDialog.showError(invalidImageError);
analytics.logEvent('Invalid image', image);
return;
}
try {
let message = null;
let title = null;
@@ -321,16 +310,6 @@ export class SourceSelector extends React.Component<
} catch (error) {
analytics.logException(error);
}
if (!supportedFormats.isSupportedImage(imagePath)) {
const invalidImageError = errors.createUserError({
title: 'Invalid image',
description: messages.error.invalidImage(imagePath),
});
osDialog.showError(invalidImageError);
analytics.logEvent('Invalid image', { path: imagePath });
return;
}
let source;
if (SourceType === sourceDestination.File) {