Skip to content

Commit

Permalink
fix(cmd/web/locale): 修正 stat 可能为空的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
caixw committed Jun 2, 2024
1 parent c791170 commit 69a0400
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/web/locale/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ func Init(opt *cmdopt.CmdOpt, p *localeutil.Printer) {
dest = &message.Language{}
} else if err != nil {
return err
}

if stat.IsDir() {
} else if stat.IsDir() {
return web.NewLocaleError("the dest file %s is dir", d)
}

Expand Down

0 comments on commit 69a0400

Please sign in to comment.