simplify param logic (getInputData() is @NonNull)
This commit is contained in:
parent
366146d22e
commit
ce96eeafb6
|
@ -29,8 +29,7 @@ public class FeedUpdateWorker extends Worker {
|
||||||
@Override
|
@Override
|
||||||
@NonNull
|
@NonNull
|
||||||
public Result doWork() {
|
public Result doWork() {
|
||||||
final boolean isImmediate = getInputData() != null ?
|
final boolean isImmediate = getInputData().getBoolean(PARAM_RUN_IMMEDIATE, false);
|
||||||
getInputData().getBoolean(PARAM_RUN_IMMEDIATE, false) : false;
|
|
||||||
Log.d(TAG, "doWork() : isImmediate = " + isImmediate);
|
Log.d(TAG, "doWork() : isImmediate = " + isImmediate);
|
||||||
ClientConfig.initialize(getApplicationContext());
|
ClientConfig.initialize(getApplicationContext());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue