Skip to content

Commit

Permalink
addressing pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Jul 10, 2020
1 parent d02e2f1 commit 3e97a48
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions x-pack/plugins/observability/public/utils/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
*/
import datemath from '@elastic/datemath';

export function getAbsoluteTime(range?: string, opts = {}) {
if (range) {
const parsed = datemath.parse(range, opts);
if (parsed) {
return parsed.valueOf();
}
export function getAbsoluteTime(range: string, opts = {}) {
const parsed = datemath.parse(range, opts);
if (parsed) {
return parsed.valueOf();
}
}

0 comments on commit 3e97a48

Please sign in to comment.