Skip to content

Commit

Permalink
Address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shashwathi committed Oct 29, 2019
1 parent f3c96a4 commit 49f5e57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_images/runtime/handlers/file_access_attempt.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ func checkReadable(path string) error {
_, err := ioutil.ReadDir(path)
return err
}

readFile, err := os.OpenFile(path, os.O_RDONLY, 0)
if err != nil {
return err
}
readFile.Close()
return nil
return readFile.Close()
}

// checkWritable function checks whether path file or directory is writable
Expand Down

0 comments on commit 49f5e57

Please sign in to comment.