Merge pull request #781 from vector-im/bwindels/fixlint-2022-7-4

fix lint
This commit is contained in:
Bruno Windels 2022-07-04 14:18:05 +00:00 committed by GitHub
commit 1aa2ff5c10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,6 @@ export function addCacheBuster(urlStr, random = Math.random) {
export function mapAsFormData(map) {
const formData = new FormData();
for (const [name, value] of map) {
let filename;
// Special case {name: string, blob: BlobHandle} to set a filename.
// This is the format returned by platform.openFile
if (value.blob?.nativeBlob && value.name) {