Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b4327a6

Browse files
committedJul 10, 2023
chore: fix lint
1 parent 9559434 commit b4327a6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
 

‎Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ gen:
5757
print-%:
5858
@echo $*=$($*)
5959

60+
lint:
61+
golangci-lint run
62+
6063

6164
# docker
6265
.PHONY: docker

‎lib/journal/fsjournal/fs_test.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package fsjournal
33

44
import (
55
"encoding/json"
6-
"io/ioutil"
76
"os"
87
"path/filepath"
98
"testing"
@@ -22,7 +21,7 @@ func TestFsJournal(t *testing.T) {
2221
require.NoError(t, err)
2322

2423
dir := filepath.Join(lr.Path(), "journal")
25-
require.NoError(t, ioutil.WriteFile(dir, []byte("file exists\n"), 0644))
24+
require.NoError(t, os.WriteFile(dir, []byte("file exists\n"), 0644))
2625

2726
// stm: @VENUSMINER_JOURNAL_ENV_DISABLED_EVENTS_001
2827
envDisableEvent := journal.EnvDisabledEvents()
@@ -63,7 +62,7 @@ func TestFsJournal(t *testing.T) {
6362
t.Logf("Waiting record event...")
6463

6564
time.AfterFunc(time.Millisecond*100, func() {
66-
recordEventData, err := ioutil.ReadFile(jlFile)
65+
recordEventData, err := os.ReadFile(jlFile)
6766
require.NoError(t, err)
6867

6968
event := &journal.Event{}

0 commit comments

Comments
 (0)
Please sign in to comment.