From 361246995448a9c5f797c8d049080aedbfb8ff24 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Wed, 15 Nov 2017 13:13:19 -0800 Subject: [PATCH] Make LogItem not crash on init. --- Frameworks/RSCore/RSCore/LogItem.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Frameworks/RSCore/RSCore/LogItem.swift b/Frameworks/RSCore/RSCore/LogItem.swift index 96cd67180..d5be961ba 100644 --- a/Frameworks/RSCore/RSCore/LogItem.swift +++ b/Frameworks/RSCore/RSCore/LogItem.swift @@ -23,8 +23,9 @@ public struct LogItem: Hashable { self.type = type self.message = message - self.date = Date() - self.hashValue = message.hashValue + self.date.hashValue + let date = Date() + self.date = date + self.hashValue = message.hashValue + date.hashValue } static public func ==(lhs: LogItem, rhs: LogItem) -> Bool {