From c5ddd3955a0e9fb2a8e90d0376816cb3852c45a3 Mon Sep 17 00:00:00 2001 From: "Michael J. Roberts" Date: Fri, 17 Jun 2022 16:00:37 +0100 Subject: [PATCH] fix: Ensured &Transit{ Duration : 0 } in return. --- pkg/dusk/transit.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/dusk/transit.go b/pkg/dusk/transit.go index 4047e8b..c809811 100644 --- a/pkg/dusk/transit.go +++ b/pkg/dusk/transit.go @@ -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 }