diff pkg/controllers/system.go @ 5683:31973f6f5cca sr-v2

Get rid of deprecation warnings from staticcheck.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 11 Feb 2024 21:37:00 +0100
parents 5f47eeea988d
children 2dd155cc95ec
line wrap: on
line diff
--- a/pkg/controllers/system.go	Sun Feb 11 21:26:22 2024 +0100
+++ b/pkg/controllers/system.go	Sun Feb 11 21:37:00 2024 +0100
@@ -18,8 +18,8 @@
 	"context"
 	"database/sql"
 	"fmt"
-	"io/ioutil"
 	"net/http"
+	"os"
 	"regexp"
 	"strings"
 	"sync"
@@ -90,7 +90,7 @@
 
 	var txt []byte
 
-	if txt, err = ioutil.ReadFile(path); err != nil {
+	if txt, err = os.ReadFile(path); err != nil {
 		return
 	}
 
@@ -112,7 +112,7 @@
 	}
 
 	var data []byte
-	if data, err = ioutil.ReadFile(cfg); err != nil {
+	if data, err = os.ReadFile(cfg); err != nil {
 		return
 	}