Skip to content

Commit

Permalink
if condition checkstyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shruti0085 committed Sep 26, 2024
1 parent fba32da commit 1121839
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ public LspInstallation getLspInstallation() {
}

private static void makeExecutable(final Path filePath, PluginPlatform platform) throws IOException {
// don't set file permissions for windows as it has issues using the executable otherwise
if(platform == PluginPlatform.WINDOWS) {
return;
}
// don't set file permissions for windows as it has issues using the executable
// otherwise
if (platform == PluginPlatform.WINDOWS) {
return;
}
var permissions = new HashSet<>(Arrays.asList(PosixFilePermission.OWNER_READ, PosixFilePermission.OWNER_WRITE,
PosixFilePermission.OWNER_EXECUTE, PosixFilePermission.GROUP_READ, PosixFilePermission.GROUP_EXECUTE,
PosixFilePermission.OTHERS_READ, PosixFilePermission.OTHERS_EXECUTE));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ private void setupBrowser(final Composite parent) {
browser.setBackground(black);
parent.setBackground(black);
}

private int getBrowserStyle() {
var platform = PluginUtils.getPlatform();
if(platform == PluginPlatform.WINDOWS) {
return SWT.EDGE;
}
return SWT.NATIVE;
var platform = PluginUtils.getPlatform();
if (platform == PluginPlatform.WINDOWS) {
return SWT.EDGE;
}
return SWT.NATIVE;
}

private void setupActions(final Browser browser, final boolean isLoggedIn) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private String getContent() {
var jsDirectoryPath = Path.of(jsParent.toUri()).normalize().toString();

server = setupVirtualServer(jsDirectoryPath);
if(server == null) {
if (server == null) {
return "Failed to load JS";
}
var loginJsPath = server.getURI().toString()+"getStart.js";
Expand Down

0 comments on commit 1121839

Please sign in to comment.