1
0
mirror of https://github.com/directorz/mailfull-go.git synced 2025-12-18 01:57:04 +00:00

cosmetic changes

This commit is contained in:
teru
2016-08-18 19:22:54 +09:00
parent 1329747f54
commit bd6228197a
3 changed files with 16 additions and 16 deletions

View File

@@ -126,10 +126,10 @@ func OpenRepository(basePath string) (*Repository, error) {
for {
configDirPath := filepath.Join(rootPath, DirNameConfig)
fi, errStat := os.Stat(configDirPath)
if errStat != nil {
if errStat.(*os.PathError).Err != syscall.ENOENT {
return nil, errStat
fi, err := os.Stat(configDirPath)
if err != nil {
if err.(*os.PathError).Err != syscall.ENOENT {
return nil, err
}
} else {
if fi.IsDir() {