提交 79577313 编写于 作者: J Julien Pivotto

Inline defer

Signed-off-by: NJulien Pivotto <roidelapluie@inuits.eu>
上级 82b5f1d8
......@@ -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)
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册