X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FWebInterface.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FWebInterface.java;h=d8d5e2613b389d26a5f3fb25ef437572ff7c4675;hp=544805436c7ffd093c647769a1c536d8dbaacfbe;hb=399632073484e68c7664af6b24f6fe45fdbbb6dd;hpb=b31d36fc6fa19e9d47677b7450cd96881945b2ef diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 5448054..d8d5e26 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -265,8 +265,8 @@ public class WebInterface implements SessionProvider { @Override @Nullable - public Sone getCurrentSone(@Nonnull ToadletContext toadletContext, boolean createSession) { - return createSession ? getCurrentSoneCreatingSession(toadletContext) : getCurrentSoneWithoutCreatingSession(toadletContext); + public Sone getCurrentSone(@Nonnull ToadletContext toadletContext) { + return getCurrentSoneWithoutCreatingSession(toadletContext); } /**