mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 04:45:46 +00:00
fix: 异常未使用内容
This commit is contained in:
parent
12f6b1ca45
commit
bfd9b1b7c7
@ -4,7 +4,6 @@ import type { NapCatCore } from '@/core';
|
||||
|
||||
export abstract class ConfigBase<T> {
|
||||
abstract name: string;
|
||||
pathName: string | null = null; // 本次读取的文件路径
|
||||
coreContext: NapCatCore;
|
||||
configPath: string;
|
||||
configData: T = {} as T;
|
||||
@ -31,7 +30,6 @@ export abstract class ConfigBase<T> {
|
||||
const logger = this.coreContext.context.logger;
|
||||
const configPath = this.getConfigPath(this.coreContext.selfInfo.uin);
|
||||
if (!fs.existsSync(configPath)) {
|
||||
this.pathName = configPath; // 记录有效的设置文件
|
||||
try {
|
||||
fs.writeFileSync(configPath, fs.readFileSync(this.getConfigPath(undefined), 'utf-8'));
|
||||
logger.log(`配置文件${configPath}创建成功!\n`);
|
||||
|
Loading…
Reference in New Issue
Block a user