Fix Prettier (#7066)
This commit is contained in:
@@ -38,12 +38,7 @@ export class FilesAdapter {
|
||||
*
|
||||
* @return {Promise} a promise that should fail if the storage didn't succeed
|
||||
*/
|
||||
createFile(
|
||||
filename: string,
|
||||
data,
|
||||
contentType: string,
|
||||
options: Object
|
||||
): Promise {}
|
||||
createFile(filename: string, data, contentType: string, options: Object): Promise {}
|
||||
|
||||
/** Responsible for deleting the specified file
|
||||
*
|
||||
@@ -111,10 +106,7 @@ export function validateFilename(filename): ?Parse.Error {
|
||||
|
||||
const regx = /^[_a-zA-Z0-9][a-zA-Z0-9@. ~_-]*$/;
|
||||
if (!filename.match(regx)) {
|
||||
return new Parse.Error(
|
||||
Parse.Error.INVALID_FILE_NAME,
|
||||
'Filename contains invalid characters.'
|
||||
);
|
||||
return new Parse.Error(Parse.Error.INVALID_FILE_NAME, 'Filename contains invalid characters.');
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user