Skip to content

Commit 1fd6e35

Browse files
committed
Default to platform present if no timestamp input was provided
1 parent 5974d55 commit 1fd6e35

File tree

1 file changed

+1
-1
lines changed
  • internal/runbits/commits_runbit

1 file changed

+1
-1
lines changed

internal/runbits/commits_runbit/time.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func ExpandTime(ts *captain.TimeValue, auth *authentication.Auth) (time.Time, er
3636
return latest, nil
3737
}
3838

39-
if ts != nil && ts.IsPresent() {
39+
if ts == nil || ts.IsPresent() {
4040
latest, err := model.FetchLatestTimeStamp(auth)
4141
if err != nil {
4242
return time.Time{}, errs.Wrap(err, "Unable to fetch latest Platform timestamp")

0 commit comments

Comments
 (0)