simplify param logic (getInputData() is @NonNull)

This commit is contained in:
orionlee 2019-09-01 09:51:31 -07:00
parent 366146d22e
commit ce96eeafb6
1 changed files with 1 additions and 2 deletions

View File

@ -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());