Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
fix gfs
Browse files Browse the repository at this point in the history
  • Loading branch information
takayama-lily committed Dec 4, 2021
1 parent c3e3ae6 commit 66c4103
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions lib/gfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface GfsDirStat extends GfsBaseStat {
}

function checkRsp(rsp: pb.Proto) {
if (rsp[1] === 0) return
if (!rsp[1]) return
drop(rsp[1], rsp[2])
}

Expand All @@ -58,7 +58,10 @@ export class Gfs {
return this.c
}

constructor(private c: Client, public readonly gid: number) { }
constructor(private readonly c: Client, public readonly gid: number) {
common.lock(this, "c")
common.lock(this, "gid")
}

/** 获取使用空间和文件数 */
async df() {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "oicq",
"version": "2.1.4",
"upday": "2021/11/07",
"version": "2.1.5",
"upday": "2021/12/04",
"description": "QQ protocol!",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down

0 comments on commit 66c4103

Please sign in to comment.