Skip to content

Commit

Permalink
try - catch not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
danv61 committed Dec 20, 2024
1 parent 1c953ef commit c604e06
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,7 @@ protected String[] getMathExecutableCommand() {
String messagingConfigOption = "--vc-send-status-config=" + getMessagingConfigFilename();
String localMessagingOption = "--vc-print-status";

int trialIndex; // run index
try {
trialIndex = simTask.getSimulationJob().getTrialIndex().index;
} catch(NumberFormatException e) {
trialIndex = 0;
}
int trialIndex = simTask.getSimulationJob().getTrialIndex().index; // run index

ArrayList<String> cmds = new ArrayList<>();
cmds.add(executableName); // executable
Expand Down

0 comments on commit c604e06

Please sign in to comment.