Skip to content

Commit 51ead97

Browse files
committed
fix(aio_data, browser_data): remove unused config parameter in WebSocket URL methods
Removed the config parameter from the _build_ws_url method calls in both AioDataAPI and BrowserDataAPI classes. This simplifies the method signature and improves code clarity by eliminating unnecessary arguments. --- 修复(aio_data, browser_data): 移除 WebSocket URL 方法中未使用的 config 参数 在 AioDataAPI 和 BrowserDataAPI 类中移除了 _build_ws_url 方法调用中的 config 参数。这简化了方法签名,并通过消除不必要的参数提高了代码清晰度。 Change-Id: I657c950ed45ff35e830ad7601008cb05dad7ac38 Signed-off-by: OhYee <oyohyee@oyohyee.com>
1 parent 7beb0a7 commit 51ead97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

agentrun/sandbox/api/aio_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def get_cdp_url(
135135
return self._build_ws_url_with_headers(
136136
"/ws/automation", record=record, config=config
137137
)
138-
return self._build_ws_url("/ws/automation", record=record, config=config)
138+
return self._build_ws_url("/ws/automation", record=record)
139139

140140
@overload
141141
def get_vnc_url(
@@ -190,7 +190,7 @@ def get_vnc_url(
190190
return self._build_ws_url_with_headers(
191191
"/ws/liveview", record=record, config=config
192192
)
193-
return self._build_ws_url("/ws/liveview", record=record, config=config)
193+
return self._build_ws_url("/ws/liveview", record=record)
194194

195195
def sync_playwright(
196196
self,

agentrun/sandbox/api/browser_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def get_vnc_url(
179179
return self._build_ws_url_with_headers(
180180
"/ws/liveview", record=record, config=config
181181
)
182-
return self._build_ws_url("/ws/liveview", record=record, config=config)
182+
return self._build_ws_url("/ws/liveview", record=record)
183183

184184
def sync_playwright(
185185
self,

0 commit comments

Comments
 (0)