소스 검색

Minor code simplification

https://github.com/FreshRSS/FreshRSS/pull/2300
Alexandre Alapetite 7 년 전
부모
커밋
09362f15ee
1개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 6
      p/scripts/main.js

+ 2 - 6
p/scripts/main.js

@@ -462,9 +462,7 @@ function next_feed() {
 
 function first_feed() {
 	const a = document.querySelector('#aside_feed .category.active .feed:not([data-unread="0"]) a.item-title');
-	if (a) {
-		delayedClick(a);
-	}
+	delayedClick(a);
 }
 
 function last_feed() {
@@ -504,9 +502,7 @@ function next_category() {
 
 function first_category() {
 	const a = document.querySelector('#aside_feed .category:not([data-unread="0"]) a.title');
-	if (a) {
-		delayedClick(a);
-	}
+	delayedClick(a);
 }
 
 function last_category() {