♻️ Move throwing redirect exception into method
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / pages / LockSonePage.kt
index 2a62a7d..9f6f30e 100644 (file)
@@ -19,7 +19,7 @@ class LockSonePage @Inject constructor(webInterface: WebInterface, loaders: Load
                        soneRequest.parameters["sone", 44]!!
                                        .let { soneRequest.core.getLocalSone(it) }
                                        ?.let { soneRequest.core.lockSone(it) }
-                       throw RedirectException(returnPage)
+                       redirectTo(returnPage)
                }
        }