summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimponic <loganhunt@simponic.xyz>2022-12-30 05:51:47 -0700
committerSimponic <loganhunt@simponic.xyz>2022-12-30 05:51:47 -0700
commite7d8c61487815bd90ec5834dad5e6f64dd951b53 (patch)
treef882037a2820973ba6dc5f64206b01dba03266d8 /lib
parent9add1557b30c630cf45a1018cefc9a4a202db113 (diff)
downloadchessh-e7d8c61487815bd90ec5834dad5e6f64dd951b53.tar.gz
chessh-e7d8c61487815bd90ec5834dad5e6f64dd951b53.zip
More warning squashing
Diffstat (limited to 'lib')
-rw-r--r--lib/chessh/auth/password.ex1
-rw-r--r--lib/chessh/ssh/cli.ex2
-rw-r--r--lib/chessh/ssh/daemon.ex2
3 files changed, 2 insertions, 3 deletions
diff --git a/lib/chessh/auth/password.ex b/lib/chessh/auth/password.ex
index a01291d..0986169 100644
--- a/lib/chessh/auth/password.ex
+++ b/lib/chessh/auth/password.ex
@@ -8,7 +8,6 @@ defmodule Chessh.Auth.PasswordAuthenticator do
def authenticate(username, password) do
case Repo.get_by(Player, username: username) do
player -> authenticate(player, password)
- nil -> false
end
end
end
diff --git a/lib/chessh/ssh/cli.ex b/lib/chessh/ssh/cli.ex
index c7befe0..71d789b 100644
--- a/lib/chessh/ssh/cli.ex
+++ b/lib/chessh/ssh/cli.ex
@@ -1,7 +1,7 @@
defmodule Chessh.SSH.Cli do
@behaviour :ssh_server_channel
- def init() do
+ def init(_args) do
{:ok, %{}}
end
diff --git a/lib/chessh/ssh/daemon.ex b/lib/chessh/ssh/daemon.ex
index 9ffc538..b341833 100644
--- a/lib/chessh/ssh/daemon.ex
+++ b/lib/chessh/ssh/daemon.ex
@@ -1,5 +1,5 @@
defmodule Chessh.SSH.Daemon do
- alias Chessh.{Repo, PlayerSession, Player, Utils}
+ alias Chessh.{Repo, PlayerSession, Utils}
alias Chessh.Auth.PasswordAuthenticator
use GenServer
import Ecto.Query