Commit Graph

7 Commits

Author SHA1 Message Date
openshift-merge-bot[bot] 42fbe2d3e6
Merge pull request #2102 from kolyshkin/revive
Assorted nits reported by revive linter
2024-09-26 18:29:20 +00:00
Kir Kolyshkin 83c0c077c5 all: remove old-style +build tags
Brought to you by

	go fix ./...

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2024-09-19 17:00:48 -07:00
Kir Kolyshkin 78b3787397 pkg/unshare: remove unreachable code from test
t.Fatal[f] stops the execution of the test case immediately, so anything
that follows is unreachable code and has no effect.

Remove it.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2024-09-19 16:59:52 -07:00
Kir Kolyshkin a4d8f720a2 Format sources with gofumpt
gofumpt is a superset of gofmt, enabling some more code formatting
rules.

This commit is brought to you by

	gofumpt -w .

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2023-05-26 16:17:31 -07:00
Miloslav Trmač 4b28197720 Use os.ReadFile instead of ioutil.ReadFile
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2022-09-12 16:30:43 +02:00
Daniel J Walsh 534b0b3281
Standardize on capatalized logrus messages, and remove stutters
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-09-23 14:43:35 -04:00
Giuseppe Scrivano 422ad8f8da
vendor: move common/pkg/unshare to storage/pkg/unshare
to avoid a circular dependency.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-03-31 10:16:09 +02:00