Skip to content

Commit

Permalink
Merge pull request #880 from bruce48x/master
Browse files Browse the repository at this point in the history
fix: lerna run lint 报错
  • Loading branch information
whtiehack authored Feb 4, 2024
2 parents b70e657 + ed9ff63 commit 89cbe7f
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 89cbe7f

Please sign in to comment.