diff --git a/CoreStore.podspec b/CoreStore.podspec
index 9c9755f..715ba67 100644
--- a/CoreStore.podspec
+++ b/CoreStore.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "CoreStore"
- s.version = "2.0.3"
+ s.version = "2.0.4"
s.license = "MIT"
s.summary = "Unleashing the real power of Core Data with the elegance and safety of Swift"
s.homepage = "https://github.com/JohnEstropia/CoreStore"
diff --git a/Sources/Info.plist b/Sources/Info.plist
index 0de69c1..241ef86 100644
--- a/Sources/Info.plist
+++ b/Sources/Info.plist
@@ -15,7 +15,7 @@
CFBundlePackageType
FMWK
CFBundleShortVersionString
- 2.0.3
+ 2.0.4
CFBundleSignature
????
CFBundleVersion
diff --git a/Sources/Internal/NotificationObserver.swift b/Sources/Internal/NotificationObserver.swift
index 227f43b..50c650f 100644
--- a/Sources/Internal/NotificationObserver.swift
+++ b/Sources/Internal/NotificationObserver.swift
@@ -32,14 +32,10 @@ internal final class NotificationObserver {
// MARK: Public
- let notificationName: Notification.Name
- let object: AnyObject?
let observer: NSObjectProtocol
init(notificationName: Notification.Name, object: AnyObject?, queue: OperationQueue? = nil, closure: @escaping (_ note: Notification) -> Void) {
- self.notificationName = notificationName
- self.object = object
self.observer = NotificationCenter.default.addObserver(
forName: notificationName,
object: object,
@@ -50,10 +46,6 @@ internal final class NotificationObserver {
deinit {
- NotificationCenter.default.removeObserver(
- self.observer,
- name: self.notificationName,
- object: self.object
- )
+ NotificationCenter.default.removeObserver(self.observer)
}
}