chore(lint): review exclude rules

This commit is contained in:
Quentin McGaw
2022-06-11 02:41:16 +00:00
parent edbbcc041a
commit b3b6933ef4
2 changed files with 9 additions and 21 deletions

View File

@@ -11,7 +11,7 @@ import (
// Create creates a TUN device at the path specified.
func (t *Tun) Create(path string) error {
parentDir := filepath.Dir(path)
if err := os.MkdirAll(parentDir, 0751); err != nil { //nolint:gomnd
if err := os.MkdirAll(parentDir, 0751); err != nil {
return err
}