Skip to content

Commit 51a4824

Browse files
committed
simplified
1 parent 195101d commit 51a4824

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main/java/org/htmlunit/html/HtmlLink.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import org.htmlunit.WebResponse;
3131
import org.htmlunit.css.CssStyleSheet;
3232
import org.htmlunit.cssparser.dom.MediaListImpl;
33-
import org.htmlunit.javascript.AbstractJavaScriptEngine;
3433
import org.htmlunit.javascript.PostponedAction;
3534
import org.htmlunit.javascript.host.event.Event;
3635
import org.htmlunit.javascript.host.html.HTMLLinkElement;
@@ -325,9 +324,8 @@ public void execute() {
325324
}
326325
};
327326

328-
final AbstractJavaScriptEngine<?> engine = webClient.getJavaScriptEngine();
329327
if (postponed) {
330-
engine.addPostponedAction(action);
328+
webClient.getJavaScriptEngine().addPostponedAction(action);
331329
}
332330
else {
333331
try {

0 commit comments

Comments
 (0)