Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
[epociask/issue-160-slack-fix] Don't error when returning zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethen Pociask committed Oct 25, 2023
1 parent 052e230 commit 4c6d1fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/etl/pipeline/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,9 @@ func (em *etlManager) GetPipelineHeight(id core.PUUID) (*big.Int, error) {
return nil, err
}

// If the pipeline is not running, return 0
if height == nil {
return big.NewInt(0), fmt.Errorf("pipeline height is nil")
return big.NewInt(0), nil
}

return height, nil
Expand Down

0 comments on commit 4c6d1fd

Please sign in to comment.