1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-25 23:02:35 +03:00

Remove unnec' unowned

This commit is contained in:
Tae Won Ha 2019-03-23 10:40:45 +01:00
parent 8d54f923b1
commit 40e72cd729
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -45,7 +45,7 @@ class OpenQuicklyWindow: NSObject,
source
.observeOn(MainScheduler.instance)
.subscribe(onNext: { [unowned self] state in
.subscribe(onNext: { state in
guard state.openQuickly.open else {
self.windowController.close()
return
@ -68,7 +68,7 @@ class OpenQuicklyWindow: NSObject,
)
self.searchStream
.subscribe(onNext: { [unowned self] pattern in
.subscribe(onNext: { pattern in
self.pattern = pattern
self.resetAndAddFilterOperation()
})
@ -76,7 +76,7 @@ class OpenQuicklyWindow: NSObject,
self.flatFileItemsSource
.subscribeOn(self.scheduler)
.do(onNext: { [unowned self] items in
.do(onNext: { items in
self.scanCondition.lock()
while self.pauseScan {
self.scanCondition.wait()
@ -88,7 +88,7 @@ class OpenQuicklyWindow: NSObject,
self.resetAndAddFilterOperation()
})
.observeOn(MainScheduler.instance)
.subscribe(onNext: { [unowned self] items in
.subscribe(onNext: { items in
self.count += items.count
self.countField.stringValue = "\(self.count) items"
})