diff options
| author | 2025-11-16 00:00:00 +0000 | |
|---|---|---|
| committer | 2025-11-16 00:00:00 +0000 | |
| commit | cc098a2dcac2ff3f7f4a40f30ba6336fd78048de (patch) | |
| tree | 0d68f494c63804e2f293612f975fe593d97fb403 | |
| parent | Add basic support for parsing configuration files (diff) | |
| signature | ||
Ignore error on f.Close()
| -rw-r--r-- | repo.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -44,7 +44,9 @@ func OpenRepository(path string) (*Repository, error) { if err != nil { return nil, fmt.Errorf("furgit: unable to open config: %w", err) } - defer f.Close() + defer func() { + _ = f.Close() + }() cfg, err := ParseConfig(f) if err != nil { |
