Skip to content

Commit

Permalink
Use HistoryFile.Record instead of Record type conflic [ci fast]
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Oct 8, 2023
1 parent d47e8b0 commit 11c3aac
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ import nextflow.cache.CacheFactory
import nextflow.exception.AbortOperationException
import nextflow.util.HistoryFile

import static nextflow.util.HistoryFile.Record

/**
* Common cache operations shared by {@link CmdLog} and {@link CmdClean}
*
Expand Down Expand Up @@ -68,11 +66,11 @@ trait CacheBase {

}

CacheDB cacheFor(Record entry) {
CacheDB cacheFor(HistoryFile.Record entry) {
CacheFactory.create(entry.sessionId, entry.runName, basePath)
}

List<Record> listIds() {
List<HistoryFile.Record> listIds() {

if( but ) {
return history.findBut(but)
Expand All @@ -90,7 +88,7 @@ trait CacheBase {
if( !args )
return history.findByIdOrName('last')

List<Record> result = []
List<HistoryFile.Record> result = []
for( String name : args ) {
result.addAll(history.findByIdOrName(name))
}
Expand Down

0 comments on commit 11c3aac

Please sign in to comment.