Bug 1338086 - Remove useless else blocks in order to reduce complexity in dom/plugins/ r=jimm

MozReview-Commit-ID: Bp1M9LW77Ia
This commit is contained in:
Sylvestre Ledru
2017-02-09 10:33:57 +01:00
parent 54bee13884
commit e144e1280c
3 changed files with 10 additions and 16 deletions

View File

@@ -1115,10 +1115,9 @@ _getvalue(NPP aNPP,
case NPNVxDisplay: {
if (aNPP) {
return InstCast(aNPP)->NPN_GetValue(aVariable, aValue);
}
else {
*(void **)aValue = xt_client_get_display();
}
}
*(void
**)aValue = xt_client_get_display();
return NPERR_NO_ERROR;
}
case NPNVxtAppContext: