Bug 1231728 - Fixes some code to follow eslint rules. r=mak

This commit is contained in:
Felipe Gomes
2015-12-10 14:38:30 -05:00
parent 0b64c9b178
commit 8ff5f8cd13
5 changed files with 12 additions and 11 deletions

View File

@@ -318,8 +318,10 @@ var PlacesCommandHook = {
* whether or not to show the edit-bookmark UI for the bookmark item
*/
bookmarkPage: Task.async(function* (aBrowser, aParent, aShowEditUI) {
if (PlacesUIUtils.useAsyncTransactions)
return (yield this._bookmarkPagePT(aBrowser, aParent, aShowEditUI));
if (PlacesUIUtils.useAsyncTransactions) {
yield this._bookmarkPagePT(aBrowser, aParent, aShowEditUI);
return;
}
var uri = aBrowser.currentURI;
var itemId = PlacesUtils.getMostRecentBookmarkForURI(uri);