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