Skip to content

Commit

Permalink
removing defer as not working properly in for loop (#1223)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tulsishah authored Jul 12, 2023
1 parent e2244bf commit 3399736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/integration_tests/util/operations/dir_operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func CreateDirectoryWithNFiles(numberOfFiles int, dirPath string, prefix string,
}

// Closing file at the end.
defer CloseFile(file)
CloseFile(file)
}
}

Expand Down

0 comments on commit 3399736

Please sign in to comment.