mirror of
https://github.com/prometheus/prometheus
synced 2024-12-24 07:23:02 +00:00
Inline defer
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
parent
82b5f1d8b1
commit
7957731339
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user