refactor: replace OpenFile with Open

This commit is contained in:
lilong.129
2025-05-07 16:40:39 +08:00
parent 5e9fca046a
commit 81f29cdef5
7 changed files with 8 additions and 8 deletions

View File

@@ -119,7 +119,7 @@ func LoadCurlCase(path string) (*hrp.TestCaseDef, error) {
}
func readFileLines(path string) ([]string, error) {
file, err := os.OpenFile(path, os.O_RDONLY, 0o600)
file, err := os.Open(path)
if err != nil {
log.Error().Err(err).Str("path", path).Msg("open file failed")
return nil, err