mirror of
https://github.com/containers/podman.git
synced 2025-09-19 23:03:16 +08:00
enable staticcheck linter
Fix many problems reported by the staticcheck linter, including many real bugs! Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -110,9 +110,8 @@ var _ = Describe("Common functions test", func() {
|
||||
Expect(err).To(BeNil(), "Failed to write JSON to file.")
|
||||
|
||||
read, err := os.Open("/tmp/testJSON")
|
||||
defer read.Close()
|
||||
|
||||
Expect(err).To(BeNil(), "Can not find the JSON file after we write it.")
|
||||
defer read.Close()
|
||||
|
||||
bytes, _ := ioutil.ReadAll(read)
|
||||
json.Unmarshal(bytes, compareData)
|
||||
|
Reference in New Issue
Block a user