Skip to content

Commit 81f6cd8

Browse files
authored
Replace list addition with separate checks
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
1 parent 8381711 commit 81f6cd8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

plugins/nf-google/src/main/nextflow/cloud/google/batch/GoogleBatchMachineTypeSelector.groovy

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,10 @@ class GoogleBatchMachineTypeSelector {
343343
if( machineType.contains('lssd') )
344344
return true
345345

346-
if( (PARTIAL_LOCAL_SSD_SUPPORT_FAMILIES + NO_LOCAL_SSD_SUPPORT_FAMILIES).any { matchType(it, machineType) } )
346+
if( PARTIAL_LOCAL_SSD_SUPPORT_FAMILIES.any { matchType(it, machineType) } )
347+
return false
348+
349+
if( NO_LOCAL_SSD_SUPPORT_FAMILIES.any { matchType(it, machineType) } )
347350
return false
348351

349352
return true

0 commit comments

Comments
 (0)