[Pkg-mozext-commits] [personasplus] 15/76: Unhandled Promise Fix
David Prévot
taffit at moszumanska.debian.org
Fri Aug 4 21:45:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository personasplus.
commit c8a5f8f0f474a9425c3573cac8cc6b1e7bcf7e47
Author: Baris Derin <baris at barisderin.com>
Date: Wed Jul 20 21:45:12 2016 +0300
Unhandled Promise Fix
Unhandled promise fix. First checks favourites.json check before
removing it.
---
extension/modules/service.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extension/modules/service.js b/extension/modules/service.js
index 7849c75..90c9688 100644
--- a/extension/modules/service.js
+++ b/extension/modules/service.js
@@ -615,7 +615,7 @@ var PersonaService = {
FileUtils.writeFile(path, "favorites.json", JSON.stringify(val));
else {
path.append("favorites.json");
- OS.File.remove(path.spec);
+ if(path.exists()) OS.File.remove(path.spec);
}
},
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/personasplus.git
More information about the Pkg-mozext-commits
mailing list