Skip to content

Commit 6facb8e

Browse files
author
Eva Müller
committed
Add whitespace after if to pass code style check
1 parent ff53e4a commit 6facb8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/hudson/Functions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2633,7 +2633,7 @@ public static String translateModifierKeysForUsersPlatform(String keyboardShortc
26332633
StaplerRequest2 currentRequest = Stapler.getCurrentRequest2();
26342634
currentRequest.getWebApp().getDispatchValidator().allowDispatch(currentRequest, Stapler.getCurrentResponse2());
26352635
String userAgent = currentRequest.getHeader("User-Agent");
2636-
if(userAgent != null) {
2636+
if (userAgent != null) {
26372637
List<String> platformsThatUseCommand = List.of("MAC", "IPHONE", "IPAD");
26382638
boolean useCmdKey = platformsThatUseCommand.stream().anyMatch(e -> userAgent.toUpperCase().contains(e));
26392639
return keyboardShortcut.replace("CMD", useCmdKey ? "⌘" : "CTRL");

0 commit comments

Comments
 (0)