Skip to content

Commit

Permalink
Use short-circuit logic
Browse files Browse the repository at this point in the history
To avoid calculation on right side.
  • Loading branch information
EcljpseB0T authored and jukzi committed Jun 9, 2023
1 parent 0949d9a commit 15d24c1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,10 @@ private ScrolledPageBook createMainPageBook(FormToolkit toolkit, Form form) {
// if the cached page is a URL ignore it. We do not want to launch a
// browser on startup.
String cachedPage = getCachedCurrentPage();
if (cachedPage != null & !History.isURL(cachedPage))
if (cachedPage != null && !History.isURL(cachedPage)) {
// this will create the page in the page form.
model.setCurrentPageId(cachedPage);
}

AbstractIntroPage pageToShow = getModel().getCurrentPage();
// load style manager here to test for navigation.
Expand Down

0 comments on commit 15d24c1

Please sign in to comment.