Skip to content

Commit

Permalink
Rename variable which hides field latestVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed May 17, 2019
1 parent c042a89 commit 83b09e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,10 @@ protected void manage(Architecture arch, String version) {

// Check latest version
if (getLatest && !config().isUseBetaVersions()) {
Optional<String> latestVersion = getLatestVersion();
getLatest = !latestVersion.isPresent();
Optional<String> lastVersion = getLatestVersion();
getLatest = !lastVersion.isPresent();
if (!getLatest) {
version = latestVersion.get();
version = lastVersion.get();
}
}

Expand Down

0 comments on commit 83b09e5

Please sign in to comment.