From 20880e15cbb881c0b6cdb1e111554a6d4edd2639 Mon Sep 17 00:00:00 2001 From: Silas Date: Tue, 1 Mar 2022 23:25:40 -0500 Subject: [PATCH] take out js extension of jest config until that's set up --- assets/{jest.config.js => jest.config} | 0 lib/entendu/user_from_auth.ex | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename assets/{jest.config.js => jest.config} (100%) diff --git a/assets/jest.config.js b/assets/jest.config similarity index 100% rename from assets/jest.config.js rename to assets/jest.config diff --git a/lib/entendu/user_from_auth.ex b/lib/entendu/user_from_auth.ex index abc91be..37999f9 100644 --- a/lib/entendu/user_from_auth.ex +++ b/lib/entendu/user_from_auth.ex @@ -66,7 +66,7 @@ defmodule Entendu.UserFromAuth do end end - def can_access?(recipient, %{emails: emails, username: username} = stuff), + def can_access?(recipient, %{emails: emails, username: username}), do: email_matches?(recipient, emails) || username_matches?(recipient, username) defp email_matches?(recipient, emails),