mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-15 17:02:06 +01:00
Simplify ReferenceTime.now()
This commit is contained in:
parent
8d68a29836
commit
3ddb73c1d6
1 changed files with 1 additions and 5 deletions
|
@ -23,11 +23,7 @@ interface ReferenceTime {
|
|||
*/
|
||||
@JvmStatic
|
||||
fun now(): ReferenceTime {
|
||||
val now = Date()
|
||||
return object: ReferenceTime {
|
||||
override val timestamp: Date
|
||||
get() = now
|
||||
}
|
||||
return timestamp(Date())
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue