removed double if

This commit is contained in:
Baris Soner Usakli
2014-02-17 21:37:36 -05:00
parent 92ebf2975a
commit 9b88dcdc14

View File

@@ -338,9 +338,7 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
if(window.location.hash) { if(window.location.hash) {
Topic.scrollToPost(window.location.hash.substr(1)); Topic.scrollToPost(window.location.hash.substr(1));
} else if(bookmark) { } else if(bookmark) {
if(bookmark) {
Topic.scrollToPost(parseInt(bookmark, 10)); Topic.scrollToPost(parseInt(bookmark, 10));
}
} else { } else {
updateHeader(); updateHeader();
} }