mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 16:40:32 +00:00
Suppressed warning
There seems to be a bug in the kotlin plugin as it tells you when building that this can't be null: "Condition 'throwable != null' is always 'true'" However it can indeed be null as seen in https://github.com/TeamNewPipe/NewPipe/pull/6986#issuecomment-906822218
This commit is contained in:
parent
b061423847
commit
f18a7c91ca
@ -300,6 +300,12 @@ class FeedLoadService : Service() {
|
|||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.subscribe { _, throwable ->
|
.subscribe { _, throwable ->
|
||||||
|
// There seems to be a bug in the kotlin plugin as it tells you when
|
||||||
|
// building that this can't be null:
|
||||||
|
// "Condition 'throwable != null' is always 'true'"
|
||||||
|
// However it can indeed be null
|
||||||
|
// The suppression may be removed in further versions
|
||||||
|
@Suppress("SENSELESS_COMPARISON")
|
||||||
if (throwable != null) {
|
if (throwable != null) {
|
||||||
Log.e(TAG, "Error while storing result", throwable)
|
Log.e(TAG, "Error while storing result", throwable)
|
||||||
handleError(throwable)
|
handleError(throwable)
|
||||||
|
Loading…
Reference in New Issue
Block a user