Skip to content

Commit 50575cb

Browse files
committed
more descriptive name for zork command handling function
1 parent d9c570e commit 50575cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/zork/freedom-module.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function serveConnection(connection: tcp.Connection): void {
7676
var transformerConfig: string;
7777

7878
const lineFeeder = new linefeeder.LineFeeder(connection.dataFromSocketQueue);
79-
var doit = (command: string) => {
79+
var processCommand = (command: string) => {
8080
log.debug('%1: received command: %2', connection.connectionId, command);
8181

8282
let keepParsing = false;
@@ -140,10 +140,10 @@ function serveConnection(connection: tcp.Connection): void {
140140
}
141141

142142
if (keepParsing) {
143-
lineFeeder.setSyncNextHandler(doit);
143+
lineFeeder.setSyncNextHandler(processCommand);
144144
}
145145
};
146-
lineFeeder.setSyncNextHandler(doit);
146+
lineFeeder.setSyncNextHandler(processCommand);
147147

148148
connection.onceClosed.then((kind:tcp.SocketCloseKind) => {
149149
log.info('%1: closed (%2)',

0 commit comments

Comments
 (0)