syntax fixes

This commit is contained in:
ston1th 2021-11-05 21:55:18 +01:00
commit 1ce33aa89a
13 changed files with 45 additions and 43 deletions

View file

@ -42,7 +42,7 @@ func New(path string) (i *Index, err error) {
return
}
if _, err = os.Stat(path); os.IsNotExist(err) {
err = os.Mkdir(path, 0700)
err = os.Mkdir(path, 0o700)
if err != nil {
err = errors.New("index: " + err.Error())
return