KozzK
Reactiflux4y ago
10 replies
Kozz

bfrisco – 00-42 Jan 1

Is there a purpose of what I am dubbing as "blanket brackets" within functions? Example:
await socket.connect({host, port, timeout: 5000});
{ // <--- what is this?
  socket.writeVarInt(0x00);
  socket.writeVarInt(50);
  // ...
}

let response;
// ...

I've seen this a couple times in open source repos, wondering if that's just an oversight or if this actually does something.
Was this page helpful?