From b2512bd39a01bc0c1334f537c72ea20e4c1dbd73 Mon Sep 17 00:00:00 2001 From: mudabbir-ahmad Date: Wed, 15 Jul 2026 20:33:49 +0100 Subject: [PATCH] trynna fix nil --- main.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/main.go b/main.go index 7ca468f..8a7b687 100644 --- a/main.go +++ b/main.go @@ -7,17 +7,9 @@ import ( "path/filepath" ) -func check(e error) { - e != nil - { - panic(e) - } -} - func write(a, b string) { path := filepath.Join(a, b) - file, err := os.Create(path) - check(err) + file, _ := os.Create(path) file.Sync()