diff options
author | orionlee <orionlee@yahoo.com> | 2019-09-01 09:51:31 -0700 |
---|---|---|
committer | orionlee <orionlee@yahoo.com> | 2019-09-24 10:12:14 -0700 |
commit | ce96eeafb6a8945536cecb2476173e7991126754 (patch) | |
tree | bb8a339893b5026058002572fc04f24549bc7535 /core/src/main | |
parent | 366146d22e1d29ea51e6a275d9c7cf8bd351a429 (diff) | |
download | AntennaPod-ce96eeafb6a8945536cecb2476173e7991126754.zip |
simplify param logic (getInputData() is @NonNull)
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/FeedUpdateWorker.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/FeedUpdateWorker.java b/core/src/main/java/de/danoeh/antennapod/core/service/FeedUpdateWorker.java index da3bfe734..364e3c638 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/FeedUpdateWorker.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/FeedUpdateWorker.java @@ -29,8 +29,7 @@ public class FeedUpdateWorker extends Worker { @Override @NonNull public Result doWork() { - final boolean isImmediate = getInputData() != null ? - getInputData().getBoolean(PARAM_RUN_IMMEDIATE, false) : false; + final boolean isImmediate = getInputData().getBoolean(PARAM_RUN_IMMEDIATE, false); Log.d(TAG, "doWork() : isImmediate = " + isImmediate); ClientConfig.initialize(getApplicationContext()); |