Replace err != 0 with err != nil where possible
This commit is contained in:
1 parent
fc10b781af
commit
93fabf8628
6 files changed
+18
-34
No files matched your search
@@ -27,7 +27,7 @@ which :: proc{
|
||||
|
||||
which_file :: proc(path: string) -> Which_File_Type {
|
||||
f, err := os.open(path)
|
||||
if err != 0 {
|
||||
if err != nil {
|
||||
return .Unknown
|
||||
}
|
||||
header: [128]byte
|
||||
|
||||
Reference in new issue
Block a user