Post-Migrator/utilities/io-utilities.go

9 lines
122 B
Go
Raw Permalink Normal View History

2024-05-07 22:03:15 +00:00
package utilities
import "io"
func CloseBodyAndCheckError(Body io.ReadCloser) {
err := Body.Close()
CheckError(err)
}