From bf0d9ab7d9a12f49becfc7a16fecb6917927b5d7 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 29 Dec 2019 23:19:00 +0100 Subject: [PATCH] Removed not needed null check --- module/Core/src/Entity/Visit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/Core/src/Entity/Visit.php b/module/Core/src/Entity/Visit.php index 227f32a4..c4ee97a2 100644 --- a/module/Core/src/Entity/Visit.php +++ b/module/Core/src/Entity/Visit.php @@ -87,7 +87,7 @@ class Visit extends AbstractEntity implements JsonSerializable { return [ 'referer' => $this->referer, - 'date' => $this->date !== null ? $this->date->toAtomString() : null, + 'date' => $this->date->toAtomString(), 'userAgent' => $this->userAgent, 'visitLocation' => $this->visitLocation,