Remove semicolons

This commit is contained in:
Tolgahan Çelik
2022-11-03 14:43:24 +03:00
parent a5449cbca6
commit c9e26532d7
+4 -4
View File
@@ -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
}
}
}