Skip to content

Commit cb14077

Browse files
committed
Remove unnecessary try-catch
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
1 parent ea4834f commit cb14077

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

modules/nf-lang/src/main/java/nextflow/script/control/GroovyCompiler.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,7 @@ public static List<ClassNode> compile(SourceUnit su) {
5252
compilationUnit.addSource(sourceUnit);
5353

5454
// compile source files
55-
try {
56-
compilationUnit.compile(Phases.CANONICALIZATION);
57-
}
58-
catch( GroovyBugError | Exception e ) {
59-
// ignore
60-
}
55+
compilationUnit.compile(Phases.CANONICALIZATION);
6156

6257
// collect compiled classes
6358
var moduleNode = sourceUnit.getAST();

0 commit comments

Comments
 (0)