浏览代码

lib/osutil: Fix lint warning on error formatting (fixes #3760)

Jakob Borg 9 年之前
父节点
当前提交
9abb7b71a9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/osutil/osutil.go

+ 2 - 2
lib/osutil/osutil.go

@@ -20,7 +20,7 @@ import (
 	"github.com/syncthing/syncthing/lib/sync"
 )
 
-var ErrNoHome = errors.New("No home directory found - set $HOME (or the platform equivalent).")
+var errNoHome = errors.New("no home directory found - set $HOME (or the platform equivalent)")
 
 // Try to keep this entire operation atomic-like. We shouldn't be doing this
 // often enough that there is any contention on this lock.
@@ -123,7 +123,7 @@ func getHomeDir() (string, error) {
 	}
 
 	if home == "" {
-		return "", ErrNoHome
+		return "", errNoHome
 	}
 
 	return home, nil