Skip to content

Commit

Permalink
Merge pull request #123 from observerly/bugfix/dusk/GetObjectRiseObje…
Browse files Browse the repository at this point in the history
…ctSetTimes

fix: Ensured GetObjectRiseObjectSetTimes() Duration return.
  • Loading branch information
michealroberts authored Jun 17, 2022
2 parents 718f922 + c5ddd39 commit 0e2f2f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/dusk/transit.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ func GetObjectRiseObjectSetTimesInUTC(datetime time.Time, eq EquatorialCoordinat
func GetObjectRiseObjectSetTimes(datetime time.Time, eq EquatorialCoordinate, latitude float64, longitude float64) (*Transit, error) {
if !GetDoesObjectRiseOrSet(eq, latitude) {
return &Transit{
Rise: nil,
Set: nil,
Rise: nil,
Set: nil,
Duration: 0,
}, nil
}

Expand Down

0 comments on commit 0e2f2f8

Please sign in to comment.