Fix codacy issues

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2019-01-07 02:23:30 +01:00
parent ed7cd1b788
commit 8c81e12603

View file

@ -1572,7 +1572,7 @@ public class CallController extends BaseController {
magicPeerConnectionWrapper = new MagicPeerConnectionWrapper(peerConnectionFactory,
iceServers, sdpConstraints, sessionId, callSession, null, false, true, type);
} else {
if (!type.equals("screen")) {
if (!"screen".equals(type)) {
magicPeerConnectionWrapper = new MagicPeerConnectionWrapper(peerConnectionFactory,
iceServers, sdpConstraints, sessionId, callSession, localMediaStream, false, false, type);
} else {
@ -1911,7 +1911,7 @@ public class CallController extends BaseController {
gotNick(session + "+" + type, getPeerConnectionWrapperForSessionIdAndType(session, "video", false).getNick(), false);
}
if (type.equals("video")) {
if ("video".equals(type)) {
setupAvatarForSession(session);
}