remove unnecessary condition

This commit is contained in:
pypy
2020-01-13 21:48:27 +09:00
parent c907f1f964
commit 3d27fc5ca1

View File

@@ -1814,7 +1814,7 @@ CefSharp.BindObjectAsync(
API.parseInviteLocation = function (ref) {
try {
var L = API.parseLocation(ref.details.worldId);
if (L.worldId !== '' && L.instanceId !== '') {
if (L.worldId && L.instanceId) {
return `${ref.details.worldName} #${L.instanceName} ${L.accessType}`;
}
return ref.message ||