Skip to content

Commit

Permalink
Merge pull request #26 from John-Colvin/patch-2
Browse files Browse the repository at this point in the history
remove deprecated usage of Nullable alias get this
  • Loading branch information
JackStouffer authored Aug 31, 2020
2 parents c8af27b + d3c229e commit e12b95f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ os:
language: d

d:
- dmd
- ldc
- dmd-2.084.0
- dmd-2.083.1
- dmd-2.082.1
Expand Down
6 changes: 3 additions & 3 deletions source/dateparser/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -758,10 +758,10 @@ public:
}
}
else if (ignoreTimezone && !res.shortcutResult.isNull)
res.shortcutResult = SysTime(cast(DateTime) res.shortcutResult);
res.shortcutResult = SysTime(cast(DateTime) res.shortcutResult.get);

if (!res.shortcutResult.isNull)
return res.shortcutResult;
return res.shortcutResult.get;
else
return defaultDate;
}
Expand Down Expand Up @@ -1360,4 +1360,4 @@ private:
info.validate(res);
return res;
}
}
}

0 comments on commit e12b95f

Please sign in to comment.