mirror of
https://github.com/containers/podman.git
synced 2025-06-19 00:06:43 +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:
@ -439,10 +439,10 @@ func tagOutputToMap(imagesOutput []string) map[string]map[string]bool {
|
||||
// GetHostDistributionInfo returns a struct with its distribution Name and version
|
||||
func GetHostDistributionInfo() HostOS {
|
||||
f, err := os.Open(OSReleasePath)
|
||||
defer f.Close()
|
||||
if err != nil {
|
||||
return HostOS{}
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
l := bufio.NewScanner(f)
|
||||
host := HostOS{}
|
||||
|
Reference in New Issue
Block a user