Skip to content

Commit 68c2851

Browse files
authored
remove duplicate callback invocation (#53)
1 parent fb46608 commit 68c2851

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

android/src/main/java/com/wearconnectivity/WearConnectivityMessageClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ public void sendMessage(ReadableMap messageData, List<Node> connectedNodes, Call
5555
return;
5656
}
5757
}
58-
errorCb.invoke("No nearby node found");
5958
}
6059

6160
/**
@@ -118,4 +117,4 @@ private void sendMessageToClient(ReadableMap messageData, Node node, Callback re
118117
errorCb.invoke("sendMessage failed: " + e);
119118
}
120119
}
121-
}
120+
}

0 commit comments

Comments
 (0)