diff --git a/protocol/src/main/resources/js/ProtocolManagerTemplate.js b/protocol/src/main/resources/js/ProtocolManagerTemplate.js index db282e69..cb1b633b 100644 --- a/protocol/src/main/resources/js/ProtocolManagerTemplate.js +++ b/protocol/src/main/resources/js/ProtocolManagerTemplate.js @@ -1,5 +1,4 @@ -{ -} +{} const protocols = new Map(); @@ -28,8 +27,7 @@ ProtocolManager.read = function read(buffer) { }; ProtocolManager.initProtocol = function initProtocol() { - { - } + {} }; export default ProtocolManager; diff --git a/protocol/src/main/resources/js/ProtocolTemplate.js b/protocol/src/main/resources/js/ProtocolTemplate.js index 74bdea9a..6791801d 100644 --- a/protocol/src/main/resources/js/ProtocolTemplate.js +++ b/protocol/src/main/resources/js/ProtocolTemplate.js @@ -1,38 +1,25 @@ -{ -} -const {} = function ({}) { - { - } +{} +const {} = function({}) { + {} }; -{ -} -. -prototype.protocolId = function () { +{}.prototype.protocolId = function() { return {}; }; -{ -} -. -write = function (buffer, packet) { +{}.write = function(buffer, packet) { if (buffer.writePacketFlag(packet)) { return; } - { - } + {} }; -{ -} -. -read = function (buffer) { +{}.read = function(buffer) { if (!buffer.readBoolean()) { return null; } const packet = new {}(); - { - } + {} return packet; };