Skip to content

Commit

Permalink
fix sonarlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Feuermagier committed Sep 27, 2024
1 parent 8897647 commit 274a65a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@ public void run(@NotNull ProgressIndicator indicator) {
var settings = ArtemisSettingsState.getInstance();

// Load Autograder from file
if (settings.getAutograderOption() == AutograderOption.FROM_FILE) {
// Skip everything if loading failed
if (!loadAutograderFromFile(settings, indicator)) {
return;
}
if (settings.getAutograderOption() == AutograderOption.FROM_FILE
&& !loadAutograderFromFile(settings, indicator)) {
return;
}

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ public class TestCasePanel extends SimpleToolWindowPanel {
public TestCasePanel() {
super(true, true);

var content = new JBPanel<>(new MigLayout("wrap 1", "[grow]"));

this.content = new JBPanel<>(new MigLayout("wrap 3, gapx 10px, gapy 5px", "[][][]"));
content.add(this.content);

setContent(ScrollPaneFactory.createScrollPane(content));

Expand Down

0 comments on commit 274a65a

Please sign in to comment.