1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-26 23:36:08 +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 source
.observeOn(MainScheduler.instance) .observeOn(MainScheduler.instance)
.subscribe(onNext: { [unowned self] state in .subscribe(onNext: { state in
guard state.openQuickly.open else { guard state.openQuickly.open else {
self.windowController.close() self.windowController.close()
return return
@ -68,7 +68,7 @@ class OpenQuicklyWindow: NSObject,
) )
self.searchStream self.searchStream
.subscribe(onNext: { [unowned self] pattern in .subscribe(onNext: { pattern in
self.pattern = pattern self.pattern = pattern
self.resetAndAddFilterOperation() self.resetAndAddFilterOperation()
}) })
@ -76,7 +76,7 @@ class OpenQuicklyWindow: NSObject,
self.flatFileItemsSource self.flatFileItemsSource
.subscribeOn(self.scheduler) .subscribeOn(self.scheduler)
.do(onNext: { [unowned self] items in .do(onNext: { items in
self.scanCondition.lock() self.scanCondition.lock()
while self.pauseScan { while self.pauseScan {
self.scanCondition.wait() self.scanCondition.wait()
@ -88,7 +88,7 @@ class OpenQuicklyWindow: NSObject,
self.resetAndAddFilterOperation() self.resetAndAddFilterOperation()
}) })
.observeOn(MainScheduler.instance) .observeOn(MainScheduler.instance)
.subscribe(onNext: { [unowned self] items in .subscribe(onNext: { items in
self.count += items.count self.count += items.count
self.countField.stringValue = "\(self.count) items" self.countField.stringValue = "\(self.count) items"
}) })