From c73b4f91322e742e019c60715e62b26424f3d877 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Fri, 13 Feb 2026 12:20:33 +1100 Subject: Fix error checking mistakes from porting to new os package --- src/odin/format/format.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/odin/format/format.odin b/src/odin/format/format.odin index 352b2a5..9b32721 100644 --- a/src/odin/format/format.odin +++ b/src/odin/format/format.odin @@ -28,7 +28,7 @@ find_config_file_or_default :: proc(path: string) -> printer.Config { config := default_style if os.exists(name) { - if data, err := os.read_entire_file(name, context.temp_allocator); err != nil { + if data, err := os.read_entire_file(name, context.temp_allocator); err == nil { if json.unmarshal(data, &config) == nil { found = true } @@ -59,7 +59,7 @@ read_config_file_from_path_or_default :: proc(config_path: string) -> printer.Co } config := default_style if os.exists(path) { - if data, err := os.read_entire_file(path, context.temp_allocator); err != nil { + if data, err := os.read_entire_file(path, context.temp_allocator); err == nil { if json.unmarshal(data, &config) == nil { return config } -- cgit v1.2.3