Skip to content

Commit 9cf0b8c

Browse files
committed
Make variables local
Seems these were accidentally global which may be causing some issues I don't notice or something.
1 parent ff8f853 commit 9cf0b8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.nf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,12 @@ raw_output
235235
)
236236
.filter { f -> !f.isEmpty() }
237237
.map { f ->
238-
name = f.getBaseName()
239-
ctl = file("files/import-data/load/${name.replace('_', '-')}.ctl")
238+
def name = f.getBaseName()
239+
def ctl = file("files/import-data/load/${name.replace('_', '-')}.ctl")
240240
[[name, ctl], f]
241241
}
242242
.filter {
243-
status = it[0][1].exists()
243+
def status = it[0][1].exists()
244244
if (!status) {
245245
log.info "Skipping data ${it[0][1].getBaseName()}"
246246
}

0 commit comments

Comments
 (0)