openvidu-server: CDREventEnd toJson "reason" simplified

This commit is contained in:
pabloFuente 2020-03-27 16:36:45 +01:00
parent 2e0a963128
commit a7d2232377

View File

@ -48,7 +48,7 @@ public class CDREventEnd extends CDREvent {
json.addProperty("duration", this.duration);
}
if (this.reason != null) {
json.addProperty("reason", this.reason != null ? reason.name() : "");
json.addProperty("reason", reason.name());
}
return json;
}