Skip to content

Commit 9731d69

Browse files
authored
Return toReturn.
Return toReturn. It seems clear from the code and the name of the method, getAndClearScreenshot, that this is the intended behavior.
1 parent c95b44b commit 9731d69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/server/src/org/openqa/selenium/remote/server/InMemorySession.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public void attachScreenshot(String base64EncodedImage) {
251251
public String getAndClearScreenshot() {
252252
String toReturn = screenshot;
253253
screenshot = null;
254-
return screenshot;
254+
return toReturn;
255255
}
256256

257257
@Override

0 commit comments

Comments
 (0)