This commit is contained in:
nemunaire 2016-01-23 13:19:28 +01:00
parent 8788eea4f0
commit 645f40f0c6
8 changed files with 32 additions and 37 deletions

View file

@ -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")
}