Skip to content

Commit de2c229

Browse files
committed
style: 💄 fix linter errors
1 parent 6adef05 commit de2c229

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/server/http1/RpcServer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import type {RpcCaller} from '../../common/rpc/caller/RpcCaller';
1515
import type {ServerLogger} from './types';
1616
import type {ConnectionContext} from '../types';
1717
import {ObjectValueCaller} from '../../common/rpc/caller/ObjectValueCaller';
18-
import {ObjectValue} from 'json-joy/lib/json-type-value/ObjectValue';
19-
import {ObjectType} from 'json-joy/lib/json-type/type/classes';
18+
import type {ObjectValue} from 'json-joy/lib/json-type-value/ObjectValue';
19+
import type {ObjectType} from 'json-joy/lib/json-type/type/classes';
2020
import {gzip} from '@jsonjoy.com/util/lib/compression/gzip';
2121

2222
const DEFAULT_MAX_PAYLOAD = 4 * 1024 * 1024;
@@ -137,7 +137,7 @@ export class RpcServer implements Printable {
137137
msgCodec: http1.codecs.messages.compact,
138138
});
139139
}
140-
140+
141141
public enableJsonRcp2HttpRpc(path = '/rpc'): void {
142142
const http1 = this.http1;
143143
http1.route({
@@ -218,7 +218,7 @@ export class RpcServer implements Printable {
218218
responseBody = Buffer.from(JSON.stringify(schema));
219219
}
220220
let responseBodyCompressed: Uint8Array = new Uint8Array(0);
221-
gzip(responseBody).then((compressed) => responseBodyCompressed = compressed);
221+
gzip(responseBody).then((compressed) => (responseBodyCompressed = compressed));
222222
this.http1.route({
223223
method,
224224
path,

0 commit comments

Comments
 (0)