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

View File

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