mirror of
https://github.com/beego/bee.git
synced 2024-11-22 10:10:53 +00:00
Fix Spelling mistake
useDiectory to useDirectory in readAppDirectories function
This commit is contained in:
parent
41477f6d88
commit
9237e189f2
6
run.go
6
run.go
@ -128,7 +128,7 @@ func readAppDirectories(directory string, paths *[]string) {
|
||||
return
|
||||
}
|
||||
|
||||
useDiectory := false
|
||||
useDirectory := false
|
||||
for _, fileInfo := range fileInfos {
|
||||
if strings.HasSuffix(fileInfo.Name(), "docs") {
|
||||
continue
|
||||
@ -138,13 +138,13 @@ func readAppDirectories(directory string, paths *[]string) {
|
||||
continue
|
||||
}
|
||||
|
||||
if useDiectory == true {
|
||||
if useDirectory == true {
|
||||
continue
|
||||
}
|
||||
|
||||
if path.Ext(fileInfo.Name()) == ".go" {
|
||||
*paths = append(*paths, directory)
|
||||
useDiectory = true
|
||||
useDirectory = true
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user