mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 23:51:25 +08:00
refactor: replace OpenFile with Open
This commit is contained in:
@@ -978,7 +978,7 @@ func (wd *WDADriver) StartCaptureLog(identifier ...string) error {
|
||||
|
||||
func (wd *WDADriver) PushImage(localPath string) error {
|
||||
log.Info().Str("localPath", localPath).Msg("WDADriver.PushImage")
|
||||
localFile, err := os.OpenFile(localPath, os.O_RDONLY, 0o600)
|
||||
localFile, err := os.Open(localPath)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user