From fcfbca695aee30a6fd9217b915389e42fabd7d88 Mon Sep 17 00:00:00 2001 From: Marvin Preuss Date: Wed, 11 Aug 2021 13:46:57 +0200 Subject: [PATCH] prepare: adds nolints --- pkg/prepare/prepare.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/prepare/prepare.go b/pkg/prepare/prepare.go index 6c76d03..d10a4db 100644 --- a/pkg/prepare/prepare.go +++ b/pkg/prepare/prepare.go @@ -64,7 +64,7 @@ func boxService(filename string, enable bool) error { return fmt.Errorf("could not get service file: %w", err) } - //nolint:gosec + //nolint:gosec,gomnd if err := ioutil.WriteFile(filename, schnutiboxService, 0o644); err != nil { return fmt.Errorf("could not write service file: %w", err) } @@ -106,7 +106,7 @@ func ntp() error { return fmt.Errorf("could not get ntp service file: %w", err) } - // nolint:gosec + // nolint:gosec,gomnd if err := ioutil.WriteFile("/etc/systemd/system/ntp.service", ntpService, 0o644); err != nil { return fmt.Errorf("could not copy ntp service file: %w", err) } @@ -397,7 +397,7 @@ func cmdlineTxt() error { newLine := strings.TrimSuffix(string(oldLine), "\n") + " " + "fastboot" + " " + "noswap" // Write. - // nolint:gosec + // nolint:gosec,gomnd if err := ioutil.WriteFile("/boot/cmdline.txt", []byte(newLine), 0o644); err != nil { return fmt.Errorf("could not write cmdline.txt: %w", err) } @@ -617,7 +617,7 @@ func upmpdcli() error { return fmt.Errorf("could not get upmpdcli.conf: %w", err) } - // nolint:gosec + // nolint:gosec,gomnd if err := ioutil.WriteFile("/etc/upmpdcli.conf", upmpdcliConf, 0o644); err != nil { return fmt.Errorf("could not copy upmpdcli config: %w", err) }