mirror of
https://github.com/beego/bee.git
synced 2024-11-21 23:50:54 +00:00
minor fix
This commit is contained in:
parent
8e1a1f5860
commit
8a2cb2ae1c
@ -680,11 +680,7 @@ func (*PostgresDB) GetGoDataType(sqlType string) (goType string) {
|
||||
// deleteAndRecreatePaths removes several directories completely
|
||||
func createPaths(mode byte, paths *MvcPath) {
|
||||
if (mode & O_MODEL) == O_MODEL {
|
||||
err := os.Mkdir(paths.ModelPath, 0777)
|
||||
if err != nil {
|
||||
ColorLog("[ERRO]", err)
|
||||
os.Exit(2)
|
||||
}
|
||||
os.Mkdir(paths.ModelPath, 0777)
|
||||
}
|
||||
if (mode & O_CONTROLLER) == O_CONTROLLER {
|
||||
os.Mkdir(paths.ControllerPath, 0777)
|
||||
|
Loading…
Reference in New Issue
Block a user