зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1316017 - Remove redundant nullcheck calls. r=sebastian
--HG-- extra : rebase_source : 8316fc83da782c6437028ed16088c19886370c07
This commit is contained in:
Родитель
b4372d801a
Коммит
b060052591
|
@ -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 + ']');
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче