Skip to content

Commit

Permalink
remove not necessary else
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBethgster committed Aug 23, 2023
1 parent 86285d7 commit 064e2ca
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ private static int executeScript(String[] args, DSpaceRunnableHandler dSpaceRunn
DSpaceRunnable script) {
try {
StepResult result = script.initialize(args, dSpaceRunnableHandler, null);
// check the StepResult, only run the script if the result is Continue;
// otherwise - for example the script is started with the help as argument, nothing is to do
if (StepResult.Continue.equals(result)) {
// only run the script, if the normal initialize is successful
// runs the script, the normal initialization is successful
script.run();
} else {
// otherwise - for example the script is started with the help argument
}
return 0;
} catch (ParseException e) {
Expand Down

0 comments on commit 064e2ca

Please sign in to comment.