fixdom random errors and bugs
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user