Skip to content

Commit 233902c

Browse files
committed
emergency repair condition judgment logic reverse operation causing inability to register HTML issue
1 parent f4fdf62 commit 233902c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/web.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ func (c *Engine) LoadHTMLFolders(folders []string, suffix string) {
4747
for _, folder := range folders {
4848
inFiles, err := util.FileFindAllFileChildren(folder, suffix)
4949
if err != nil {
50-
files = append(files, inFiles...)
50+
continue
5151
}
52+
files = append(files, inFiles...)
5253
}
5354
files = util.SliceDistinct(files...)
5455
if files != nil {

0 commit comments

Comments
 (0)