Skip to content

Commit

Permalink
chore: use proper equals for js
Browse files Browse the repository at this point in the history
  • Loading branch information
ablax committed Sep 10, 2024
1 parent bf6fc62 commit 39ab005
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static String getHandshake() {
" ItPipe.pipe(stream, async function (source) {" +
" for await (const msg of source) {" +
" let subarr = msg.subarray();" +
" if(subarr.length == 69) {" +
" if(subarr.length === 69) {" +
" let handshake = announceExport.getHandshake();" +
" (await ItPbStream.pbStream(stream)).writeLP(h2b(handshake));" +
" } else if (subarr.length > 1) {" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ public static String getNeighbourMessage() {
"libp.handle(protocolId, async ({connection, stream}) => {" +
" ItPipe.pipe(stream, async function (source) {" +
" for await (const msg of source) {" + " let subarr = msg.subarray();" +
" if(subarr.length == 1) {" +
" if(subarr.length === 1) {" +
" let handshake = grandpaExport.getHandshake();" +
" (await ItPbStream.pbStream(stream)).writeLP(h2b(handshake));" +
" } else if (subarr.length > 1) {" +
" if(subarr.slice(1)[0] == 2) {" +
" if(subarr.slice(1)[0] === 2) {" +
" let niehgbourMessage = grandpaExport.getNeighbourMessage();" +
" (await ItPbStream.pbStream(stream)).writeLP(h2b(niehgbourMessage));" +
" }" +
Expand Down

0 comments on commit 39ab005

Please sign in to comment.