Fix errors introduced with golangci-lint 1.41.1

This commit is contained in:
Quentin McGaw (desktop)
2021-06-20 16:39:38 +00:00
parent 2c77b73ebc
commit 266596af68
9 changed files with 20 additions and 13 deletions

View File

@@ -23,7 +23,7 @@ func (c *configurator) CheckTUN() error {
func (c *configurator) CreateTUN() error {
c.logger.Info("creating %s", constants.TunnelDevice)
if err := c.os.MkdirAll("/dev/net", 0751); err != nil {
if err := c.os.MkdirAll("/dev/net", 0751); err != nil { //nolint:gomnd
return err
}
@@ -36,7 +36,7 @@ func (c *configurator) CreateTUN() error {
return err
}
file, err := c.os.OpenFile(constants.TunnelDevice, os.O_WRONLY, 0666)
file, err := c.os.OpenFile(constants.TunnelDevice, os.O_WRONLY, 0666) //nolint:gomnd
if err != nil {
return err
}