From b5136ff1f19b00dea828eef0f17f0d7064b59aac Mon Sep 17 00:00:00 2001 From: "huangbin.beal@163.com" Date: Mon, 1 Apr 2024 16:58:46 +0800 Subject: [PATCH] chore: remove useless code --- hrp/pkg/uixt/ext.go | 1 - 1 file changed, 1 deletion(-) diff --git a/hrp/pkg/uixt/ext.go b/hrp/pkg/uixt/ext.go index f283c7f9..28eea07c 100644 --- a/hrp/pkg/uixt/ext.go +++ b/hrp/pkg/uixt/ext.go @@ -274,7 +274,6 @@ func (dExt *DriverExt) saveScreenShot(raw *bytes.Buffer, fileName string) (strin }() switch format { - // Convert to jpeg uniformly and compress with a compression rate of 95 case "jpeg", "png": jpegOptions := &jpeg.Options{} err = jpeg.Encode(file, img, jpegOptions)