Eslint no-lonely-if

This commit is contained in:
Peter Jaszkowiak
2017-02-18 14:32:35 -07:00
parent 57f89663aa
commit 144fa8698c
11 changed files with 51 additions and 71 deletions

View File

@@ -351,10 +351,8 @@ $(document).ready(function () {
// Special handling for urls with hashes
if (window.location.pathname === this.pathname && this.hash.length) {
window.location.hash = this.hash;
} else {
if (ajaxify.go(pathname)) {
e.preventDefault();
}
} else if (ajaxify.go(pathname)) {
e.preventDefault();
}
} else if (window.location.pathname !== '/outgoing') {
if (config.openOutgoingLinksInNewTab && $.contains(contentEl, this)) {