Skip to content

Commit dfbc7d8

Browse files
committed
fix: 修复安全服务初始化编译错误
1 parent 52b3028 commit dfbc7d8

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

cmd/tui/main.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,7 @@ func runWithDeps(workspaceFlag string, deps runDeps) error {
133133
func initializeSecurity(configDir string) error {
134134
securityRepo := repository.NewSecurityConfigRepository()
135135
securitySvc := service.NewSecurityService(securityRepo)
136-
initializer, ok := securitySvc.(interface{ Initialize(string) error })
137-
if !ok {
138-
return fmt.Errorf("security service does not support initialization")
139-
}
140-
if err := initializer.Initialize(configDir); err != nil {
136+
if err := securitySvc.Initialize(configDir); err != nil {
141137
return err
142138
}
143139
tools.SetSecurityChecker(securitySvc)

0 commit comments

Comments
 (0)