Skip to content

Commit

Permalink
fix: lerna run lint 报错
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce48x committed Jan 31, 2024
1 parent b70e657 commit ed9ff63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/pinus-admin/lib/protocol/mqtt/robustMqttClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { MqttClient } from './mqttClient';
let logger = getLogger('pinus-admin', path.basename(__filename));

export class RobustMqttClient extends MqttClient {

connect(host ?: string, port ?: number, cb ?: Function) {
super.connect(host, port, cb);

Expand Down
4 changes: 2 additions & 2 deletions packages/pinus/lib/common/service/backendSessionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ export class BackendSession implements ISession {
this.__sessionService__.pushAll(this.frontendId, this.id, this.settings, cb);
}

abind(uid: string,) {
abind(uid: string) {
return new Promise((resolve, reject) => this.bind(uid, (err, ret) => err ? reject(err) : resolve(ret as any)));
}

aunbind(uid: string,) {
aunbind(uid: string) {
return new Promise((resolve, reject) => this.unbind(uid, (err, ret) => err ? reject(err) : resolve(ret as any)));
}

Expand Down
2 changes: 1 addition & 1 deletion packages/pinus/lib/connectors/hybrid/switcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let ST_CLOSED = 2;

let DEFAULT_TIMEOUT = 90;

export type SslWatcher = (cb:(opts: tls.SecureContextOptions) => void) => void;
export type SslWatcher = (cb: (opts: tls.SecureContextOptions) => void) => void;
export interface HybridSwitcherOptions {
closeMethod ?: 'end';
timeout ?: number;
Expand Down

0 comments on commit ed9ff63

Please sign in to comment.