File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ type ConfigService struct {
52
52
configs []* models.Config
53
53
activeConfig * models.Config
54
54
appDir string
55
- configsDir string
56
55
systemHosts string
57
56
backupService * BackupService
58
57
}
@@ -68,10 +67,9 @@ func NewConfigService(ctx context.Context) *ConfigService {
68
67
69
68
// 创建应用目录
70
69
appDir := filepath .Join (homeDir , ".hosts-manager" )
71
- configsDir := filepath .Join (appDir , "configs" )
72
70
73
71
// 创建必要的目录
74
- os .MkdirAll (configsDir , 0755 )
72
+ os .MkdirAll (appDir , 0755 )
75
73
76
74
// 获取系统hosts文件路径
77
75
var systemHosts string
@@ -96,7 +94,6 @@ func NewConfigService(ctx context.Context) *ConfigService {
96
94
service := & ConfigService {
97
95
ctx : ctx ,
98
96
appDir : appDir ,
99
- configsDir : configsDir ,
100
97
systemHosts : systemHosts ,
101
98
configs : []* models.Config {},
102
99
backupService : backupService ,
You can’t perform that action at this time.
0 commit comments