Skip to content

Commit

Permalink
Roll back AstGenRunner changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBakerEffendi committed Oct 17, 2024
1 parent d43c19d commit 7408f70
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ trait AstGenRunnerBase(config: X2CpgConfig[?] & AstGenConfig[?]) {
}
}

def execute(out: File, isRetry: Boolean = false): AstGenRunnerResult = {
def execute(out: File): AstGenRunnerResult = {
implicit val metaData: AstGenProgramMetaData = config.astGenMetaData
val in = File(config.inputPath)
logger.info(s"Running ${metaData.name} on '${config.inputPath}'")
Expand All @@ -181,9 +181,6 @@ trait AstGenRunnerBase(config: X2CpgConfig[?] & AstGenConfig[?]) {
val parsed = filterFiles(srcFiles, out)
val skipped = skippedFiles(in, result.toList)
DefaultAstGenRunnerResult(parsed, skipped)
case Failure(f) if !isRetry =>
logger.error(s"\t- running ${metaData.name} failed! Retrying...", f)
execute(out, true)
case Failure(f) =>
logger.error(s"\t- running ${metaData.name} failed!", f)
DefaultAstGenRunnerResult()
Expand Down

0 comments on commit 7408f70

Please sign in to comment.