Bug 1316017 - Remove redundant nullcheck calls. r=sebastian

--HG--
extra : rebase_source : 8316fc83da782c6437028ed16088c19886370c07
This commit is contained in:
Hamel Joshi 2016-11-16 09:12:00 -05:00
parent b4372d801a
commit b060052591
2 changed files with 1 additions and 6 deletions

View File

@ -150,8 +150,7 @@ public class GeckoService extends Service {
throw new IllegalArgumentException("Intent must specify profile.");
}
if (!GeckoThread.initWithProfile(profileName != null ? profileName : "",
profileDir != null ? new File(profileDir) : null)) {
if (!GeckoThread.initWithProfile(profileName, profileDir != null ? new File(profileDir) : null)) {
Log.w(LOGTAG, "Ignoring due to profile mismatch: " +
profileName + " [" + profileDir + ']');

View File

@ -396,10 +396,6 @@ public class PushService implements BundleEventListener {
return;
}
if ("History:GetPrePathLastVisitedTimeMilliseconds".equals(event)) {
if (callback == null) {
Log.e(LOG_TAG, "callback must not be null in " + event);
return;
}
final String prePath = message.getString("prePath");
if (prePath == null) {
callback.sendError("prePath must not be null in " + event);