Skip to content

Commit

Permalink
fix_golangcilint_empty_result_error
Browse files Browse the repository at this point in the history
  • Loading branch information
random1223 committed Aug 28, 2024
1 parent 98a228f commit e53f3ad
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public List<CodeAnalysisResultDto> analyzeCode(AnalyzerConfigurationDetailDto ru

String errorOutput = runtimeExecResult.getErrorOutput();
String successOutput = runtimeExecResult.getSuccessOutput();
if(successOutput == null || successOutput.isEmpty()){
return list;
}

List<CodeAnalysisIssueDto> codeAnalysisIssueDtoList = GolangcilintResultConverter.convertResult(successOutput);
if(codeAnalysisIssueDtoList == null || codeAnalysisIssueDtoList.isEmpty()){
Expand Down

0 comments on commit e53f3ad

Please sign in to comment.