Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
aa6d0f9f
Commit
aa6d0f9f
authored
Nov 06, 2018
by
Viktor Vassilyev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(Template): correct check error
parent
68b0bd98
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
fs.go
fs.go
+1
-1
template.go
template.go
+1
-1
No files found.
fs.go
View file @
aa6d0f9f
...
...
@@ -40,7 +40,7 @@ func walk(fs http.FileSystem, path string, info os.FileInfo, walkFn filepath.Wal
dir
,
err
:=
fs
.
Open
(
path
)
defer
dir
.
Close
()
if
err
=
=
nil
{
if
err
!
=
nil
{
err1
:=
walkFn
(
path
,
info
,
err
)
if
err1
!=
nil
{
return
err1
...
...
template.go
View file @
aa6d0f9f
...
...
@@ -206,7 +206,7 @@ func BuildTemplate(dir string, files ...string) error {
return
self
.
visit
(
path
,
f
,
err
)
})
if
err
!=
nil
{
fmt
.
Printf
(
"
filepath.
Walk() returned %v
\n
"
,
err
)
fmt
.
Printf
(
"Walk() returned %v
\n
"
,
err
)
return
err
}
buildAllFiles
:=
len
(
files
)
==
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment