FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Revert "Refactor IF condition to make it more simple" · jackcoolpython/learning-area@d272eca · GitHub

Repository navigation

Commit d272eca

Browse files
Revert "Refactor IF condition to make it more simple"
1 parent 0fe19eb commit d272eca

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • javascript/apis/third-party-apis/nytimes

‎javascript/apis/third-party-apis/nytimes/index.html‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,10 @@ <h1>NY Times article search</h1>
176176
function previousPage(e) {
177177
if(pageNumber > 0) {
178178
pageNumber--;
179-
fetchResults(e);
179+
} else {
180+
return;
180181
}
182+
fetchResults(e);
181183
};
182184

183185
</script>

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL