Skip to content

Commit

Permalink
chore: fix mistake introduced by ab55f15 (#240)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Stadler <thomas@thomasst.xyz>
  • Loading branch information
thomasstxyz committed Apr 10, 2023
1 parent 992b107 commit 3845d47
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/analysis/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@ func (a *Analysis) GetAIResults(output string) error {
for index, analysis := range a.Results {
parsedText, err := a.AIClient.Parse(a.Context, analysis.Error, a.NoCache)
if err != nil {
bar.Exit()
// FIXME: can we avoid checking if output is json multiple times?
// maybe implement the progress bar better?
if output != "json" {
bar.Exit()
}

// Check for exhaustion
if strings.Contains(err.Error(), "status code: 429") {
Expand Down

0 comments on commit 3845d47

Please sign in to comment.