Skip to content

Commit

Permalink
[java] Shortening code a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed May 27, 2020
1 parent 75c0967 commit ea76096
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions java/client/src/org/openqa/selenium/MutableCapabilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ public void setCapability(String key, Object value) {
LoggingPreferences prefs = new LoggingPreferences();
@SuppressWarnings("unchecked") Map<String, String> prefsMap = (Map<String, String>) value;

for (String logType : prefsMap.keySet()) {
prefs.enable(logType, LogLevelMapping.toLevel(prefsMap.get(logType)));
}
prefsMap.forEach((pKey, pValue) -> prefs.enable(pKey, LogLevelMapping.toLevel(pValue)));
caps.put(key, prefs);
return;
}
Expand Down

0 comments on commit ea76096

Please sign in to comment.