🚨 Silence linter warnings I don't care about
This commit is contained in:
parent
aaa92bf151
commit
72295c53cf
3 changed files with 14 additions and 2 deletions
|
|
@ -14,12 +14,15 @@ func (m *Merger) Write(ctx context.Context, g Game) (out string, err error) {
|
|||
out = base + ".ic"
|
||||
|
||||
var f *os.File
|
||||
//nolint:gosec // Yes, of course I'm getting the file from user input
|
||||
if f, err = os.Create(out); err != nil {
|
||||
return
|
||||
}
|
||||
//nolint:errcheck // I don't care
|
||||
defer f.Close()
|
||||
|
||||
gz := gzip.NewWriter(f)
|
||||
//nolint:errcheck // I don't care
|
||||
defer gz.Close()
|
||||
gz.Name = base
|
||||
gz.ModTime = time.Unix(g.Updated/1000, g.Updated%1000)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue