mirror of
https://github.com/prometheus/prometheus
synced 2024-12-24 23:42:32 +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 {
|
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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user