mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-01 20:38:34 +01:00
Make LogItem not crash on init.
This commit is contained in:
parent
48ca636796
commit
3612469954
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user