fix by eslint rules

This commit is contained in:
Kesha Antonov
2022-12-23 09:09:32 +01:00
parent 8a9a8108b9
commit 2a1a963513
4 changed files with 9 additions and 10 deletions

View File

@@ -85,7 +85,7 @@ export function download (options) {
: JSON.stringify({})
RNBackgroundDownloader.download(options)
const task = new DownloadTask({ id: options.id, metadata: options.metadata})
const task = new DownloadTask({ id: options.id, metadata: options.metadata })
tasksMap.set(options.id, task)
return task
}

View File

@@ -18,9 +18,8 @@ export default class DownloadTask {
this.bytesWritten = taskInfo.bytesWritten ?? 0
this.totalBytes = taskInfo.totalBytes ?? 0
if (this.#parseable(taskInfo.metadata)) {
if (this.#parseable(taskInfo.metadata))
this.metadata = JSON.parse(taskInfo.metadata)
}
if (originalTask) {
this._beginHandler = originalTask._beginHandler

View File

@@ -14,4 +14,4 @@ module.exports = {
},
}),
},
};
}

View File

@@ -2,11 +2,11 @@ module.exports = {
dependency: {
platforms: {
ios: {
project: "./ios/RNBackgroundDownloader.xcodeproj"
project: './ios/RNBackgroundDownloader.xcodeproj',
},
android: {
sourceDir: "./android"
}
}
}
};
sourceDir: './android',
},
},
},
}