Fix linter errors

This commit is contained in:
Daniel
2022-09-29 14:31:00 +02:00
parent b552e3f7a5
commit fd83534698
9 changed files with 13 additions and 18 deletions

View File

@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"os"
"strings"
"sync"
"time"
@@ -72,7 +72,7 @@ func broadcastNotify(ctx context.Context, t *modules.Task) error {
if err != nil {
return fmt.Errorf("failed to get broadcast notifications update: %w", err)
}
broadcastsData, err := ioutil.ReadFile(broadcastsResource.Path())
broadcastsData, err := os.ReadFile(broadcastsResource.Path())
if err != nil {
return fmt.Errorf("failed to load broadcast notifications update: %w", err)
}