mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-08 00:47:36 +08:00
chore: remove useless code
This commit is contained in:
@@ -274,7 +274,6 @@ func (dExt *DriverExt) saveScreenShot(raw *bytes.Buffer, fileName string) (strin
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
switch format {
|
switch format {
|
||||||
// Convert to jpeg uniformly and compress with a compression rate of 95
|
|
||||||
case "jpeg", "png":
|
case "jpeg", "png":
|
||||||
jpegOptions := &jpeg.Options{}
|
jpegOptions := &jpeg.Options{}
|
||||||
err = jpeg.Encode(file, img, jpegOptions)
|
err = jpeg.Encode(file, img, jpegOptions)
|
||||||
|
|||||||
Reference in New Issue
Block a user