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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user