diff options
author | Sebastian <sebasjm@gmail.com> | 2022-09-21 15:43:35 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-09-21 15:45:41 -0300 |
commit | 5d31803c92ac085d50ab0942a6cf657a6cd9cc4b (patch) | |
tree | b78fd544b3c9b4431d6d00e5ae72156d024a3af8 /packages/taler-util/src/time.ts | |
parent | 2caef6dcf22ec292897ea5fd3dda27a9b48826c5 (diff) | |
download | wallet-core-5d31803c92ac085d50ab0942a6cf657a6cd9cc4b.tar.xz |
pretty
Diffstat (limited to 'packages/taler-util/src/time.ts')
-rw-r--r-- | packages/taler-util/src/time.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/taler-util/src/time.ts b/packages/taler-util/src/time.ts index c3f1b30bd..6ffabd495 100644 --- a/packages/taler-util/src/time.ts +++ b/packages/taler-util/src/time.ts @@ -56,7 +56,10 @@ export namespace TalerProtocolTimestamp { t_s: s, }; } - export function min(t1: TalerProtocolTimestamp, t2: TalerProtocolTimestamp): TalerProtocolTimestamp { + export function min( + t1: TalerProtocolTimestamp, + t2: TalerProtocolTimestamp, + ): TalerProtocolTimestamp { if (t1.t_s === "never") { return { t_s: t2.t_s }; } @@ -65,7 +68,6 @@ export namespace TalerProtocolTimestamp { } return { t_s: Math.min(t1.t_s, t2.t_s) }; } - } export interface Duration { |