Skip to content

Commit

Permalink
Return toReturn.
Browse files Browse the repository at this point in the history
Return toReturn.

It seems clear from the code and the name of the method,
getAndClearScreenshot, that this is the intended behavior.
  • Loading branch information
joshbruning authored Aug 28, 2017
1 parent c95b44b commit 9731d69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public void attachScreenshot(String base64EncodedImage) {
public String getAndClearScreenshot() {
String toReturn = screenshot;
screenshot = null;
return screenshot;
return toReturn;
}

@Override
Expand Down

0 comments on commit 9731d69

Please sign in to comment.