Skip to content

Commit

Permalink
tidy up exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
oweno-tfwm committed Sep 8, 2023
1 parent 8c60dd3 commit 0c47eb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/atoc_export.R
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,10 @@ makeCalendar <- function(schedule, ncores = 1) {
set_TREAT_DATES_AS_INT( FALSE )

#revert treating date as int
if( TRUE==treatDatesAsInt && exists("res.calendar") )
if( TRUE==treatDatesAsInt )
{
res.calendar = makeDateFieldsDateType( res.calendar )
cancellations = makeDateFieldsDateType( cancellations )
if (exists("res.calendar")){ res.calendar = makeDateFieldsDateType( res.calendar ) }
if (exists("cancellations")){ cancellations = makeDateFieldsDateType( cancellations ) }
}
})

Expand Down

0 comments on commit 0c47eb7

Please sign in to comment.