fixdom random errors and bugs

This commit is contained in:
2024-02-03 11:15:06 -05:00
parent 56fa94fce7
commit f68fdf3d9b
4 changed files with 11 additions and 8 deletions

View File

@ -15,7 +15,10 @@ func OpenFile(fileName string) (*os.File, error) {
func CloseFile(file *os.File) {
fmt.Println("Closing file")
file.Close()
err := file.Close()
if err != nil {
log.Fatal(err)
}
}
func GetFloats(fileName string) ([]float64, error) {