fix code quality issues

This commit is contained in:
まっちゃとーにゅ
2024-02-25 04:30:06 +09:00
parent 552354c895
commit 9452287380
2 changed files with 2 additions and 3 deletions

View File

@@ -71,7 +71,6 @@ export class AccountMoveService {
*/ */
@bindThis @bindThis
public async moveFromLocal(src: MiLocalUser, dst: MiLocalUser | MiRemoteUser): Promise<unknown> { public async moveFromLocal(src: MiLocalUser, dst: MiLocalUser | MiRemoteUser): Promise<unknown> {
const srcUri = this.userEntityService.getUserUri(src);
const dstUri = this.userEntityService.getUserUri(dst); const dstUri = this.userEntityService.getUserUri(dst);
// add movedToUri to indicate that the user has moved // add movedToUri to indicate that the user has moved

View File

@@ -195,7 +195,7 @@ export class RedisSingleCache<T> {
export class MemoryKVCache<T> { export class MemoryKVCache<T> {
/** /**
* データを持つマップ * データを持つマップ
* @deprecated これを直接操作するべきではない * これを直接操作するべきではない
*/ */
public cache: Map<string, { date: number; value: T; }>; public cache: Map<string, { date: number; value: T; }>;
private lifetime: number; private lifetime: number;
@@ -213,7 +213,7 @@ export class MemoryKVCache<T> {
@bindThis @bindThis
/** /**
* Mapにキャッシュをセットします * Mapにキャッシュをセットします
* @deprecated これを直接呼び出すべきではない。InternalEventなどで変更を全てのプロセス/マシンに通知するべき * これを直接呼び出すべきではない。InternalEventなどで変更を全てのプロセス/マシンに通知するべき
*/ */
public set(key: string, value: T): void { public set(key: string, value: T): void {
this.cache.set(key, { this.cache.set(key, {