From 7d64d40d6686d2af34c81b3128528a6a274b8037 Mon Sep 17 00:00:00 2001 From: Yaniv Efraim Date: Sat, 26 May 2018 03:29:11 +0300 Subject: [PATCH] chore(frame): minor refactor in FrameManager (#2597) --- lib/FrameManager.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/FrameManager.js b/lib/FrameManager.js index 65d43e163cb..ea0758eda5a 100644 --- a/lib/FrameManager.js +++ b/lib/FrameManager.js @@ -367,8 +367,7 @@ class Frame { */ async $eval(selector, pageFunction, ...args) { const document = await this._document(); - const value = await document.$eval(selector, pageFunction, ...args); - return value; + return document.$eval(selector, pageFunction, ...args); } /**