Inline defer

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
Julien Pivotto 2020-12-09 09:23:39 +01:00
parent 82b5f1d8b1
commit 7957731339
1 changed files with 1 additions and 3 deletions

View File

@ -620,8 +620,6 @@ func backfillOpenMetrics(path string, outputDir string) (err error) {
if err != nil { if err != nil {
return err return err
} }
defer func() { defer inputFile.Close()
inputFile.Close()
}()
return backfill(5000, inputFile.Bytes(), outputDir) return backfill(5000, inputFile.Bytes(), outputDir)
} }