Skip to content

Commit d44c6d7

Browse files
committed
fix lint
1 parent 0b9245b commit d44c6d7

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

lib/parsers/static_text_parser.js

+8-12
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ function readField({ packet, type, charset, encoding, config, options }) {
3232
case Types.DOUBLE:
3333
return packet.parseLengthCodedFloat();
3434
case Types.NULL:
35-
// case Types.BIT:
36-
// return 'packet.readBuffer(2)[1]';
3735
case Types.DECIMAL:
3836
case Types.NEWDECIMAL:
3937
if (config.decimalNumbers) {
@@ -100,16 +98,14 @@ function getStaticTextParser(fields, options, config) {
10098
for (let i = 0; i < fields.length; i++) {
10199
const field = fields[i];
102100
const typeCast = options.typeCast ? options.typeCast : config.typeCast;
103-
const next = () => {
104-
return readField({
105-
packet,
106-
type: field.columnType,
107-
encoding: field.encoding,
108-
charset: field.characterSet,
109-
config,
110-
options
111-
})
112-
}
101+
const next = () => readField({
102+
packet,
103+
type: field.columnType,
104+
encoding: field.encoding,
105+
charset: field.characterSet,
106+
config,
107+
options
108+
})
113109
let value;
114110
if (typeof typeCast === 'function') {
115111
value = typeCast(createTypecastField(field, packet), next);

0 commit comments

Comments
 (0)