Browse Source

Update StandardMenubarHandlerTests.swift

master
Abhi 2 years ago
parent
commit
cd31b73881
  1. 4
      Clocker/ClockerUnitTests/StandardMenubarHandlerTests.swift

4
Clocker/ClockerUnitTests/StandardMenubarHandlerTests.swift

@ -31,7 +31,9 @@ class StandardMenubarHandlerTests: XCTestCase {
at index: Int = -1)
{
var defaults = store.timezones()
let encodedObject = NSKeyedArchiver.clocker_archive(with: object as Any)
guard let encodedObject = NSKeyedArchiver.clocker_archive(with: object as Any) else {
return
}
index == -1 ? defaults.append(encodedObject) : defaults.insert(encodedObject, at: index)
store.setTimezones(defaults)
}

Loading…
Cancel
Save