mirror of
https://github.com/zoriya/react-native-background-downloader.git
synced 2026-05-30 08:58:30 +00:00
Remove semicolons
This commit is contained in:
+4
-4
@@ -19,7 +19,7 @@ export default class DownloadTask {
|
||||
this.totalBytes = taskInfo.totalBytes ?? 0
|
||||
|
||||
if (this.#parseable(taskInfo.metadata)) {
|
||||
this.metadata = JSON.parse(taskInfo.metadata);
|
||||
this.metadata = JSON.parse(taskInfo.metadata)
|
||||
}
|
||||
|
||||
if (originalTask) {
|
||||
@@ -97,10 +97,10 @@ export default class DownloadTask {
|
||||
|
||||
#parseable = (element) => {
|
||||
try {
|
||||
JSON.parse(element);
|
||||
return true;
|
||||
JSON.parse(element)
|
||||
return true
|
||||
} catch (err) {
|
||||
return false;
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user