fix: deepscan error and warning (#728)

This commit is contained in:
DiamondThree authored and GitHub committed 2023-01-13 07:25:33 +00:00
1 parent 03ff4c3e3d
commit 7fb5aae8b5
21 files changed
+10 -651

No files matched your search

@@ -244,9 +244,7 @@ export class AffineProvider extends BaseProvider {
}
public override async getUserInfo(): Promise<User | undefined> {
await this.init();
const user = this._apis.token.user;
await this.init;
return user
? {
id: user.id,
+1 -1
View File
@@ -52,7 +52,7 @@ export class WorkspaceUnit {
}
setBlocksuiteWorkspace(blocksuiteWorkspace: BlocksuiteWorkspace | null) {
if (blocksuiteWorkspace && blocksuiteWorkspace?.room !== this.id) {
if (blocksuiteWorkspace && blocksuiteWorkspace.room !== this.id) {
throw new Error('Workspace id inconsistent.');
}
this._blocksuiteWorkspace = blocksuiteWorkspace;