diff --git a/src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java b/src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java
index <HASH>..<HASH> 100644
--- a/src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java
+++ b/src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java
@@ -567,7 +567,7 @@ public abstract class WebDriverManager {
 
         String driverManagerTypeLowerCase = getDriverManagerType().name()
                 .toLowerCase();
-        Optional<String> optionalBrowserVersion = empty();
+        Optional<String> optionalBrowserVersion;
         if (usePreferences() && preferences
                 .checkKeyInPreferences(driverManagerTypeLowerCase)) {
             optionalBrowserVersion = Optional.of(preferences
Smell-fix: remove useless assignment to local variable