format
This commit is contained in:
parent
8788eea4f0
commit
645f40f0c6
8 changed files with 32 additions and 37 deletions
|
@ -62,7 +62,7 @@ func genTeamMyFile(team fic.Team) error {
|
|||
|
||||
if s, err := os.Stat(dirPath); os.IsNotExist(err) {
|
||||
os.MkdirAll(dirPath, 0777)
|
||||
} else if ! s.IsDir() {
|
||||
} else if !s.IsDir() {
|
||||
return errors.New("dirPath is not a directory")
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue