X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FWebInterface.java;h=d8d5e2613b389d26a5f3fb25ef437572ff7c4675;hb=399632073484e68c7664af6b24f6fe45fdbbb6dd;hp=edc3bab4a25c6a1878258d1987eef7d0b974a29e;hpb=4abaf802df7203d9a1c2e44266557b5325ba25da;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index edc3bab..d8d5e26 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -1,5 +1,5 @@ /* - * Sone - WebInterface.java - Copyright © 2010–2019 David Roden + * Sone - WebInterface.java - Copyright © 2010–2020 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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); } /**