From 0f75c973aaa782ab2251bb34cfce47958c12a35a Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Mon, 11 Nov 2019 12:30:36 -0500 Subject: [PATCH] correct usage of and --- lib/philomena_web/views/user_attribution_view.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/views/user_attribution_view.ex b/lib/philomena_web/views/user_attribution_view.ex index 809446e1..619556b7 100644 --- a/lib/philomena_web/views/user_attribution_view.ex +++ b/lib/philomena_web/views/user_attribution_view.ex @@ -19,7 +19,7 @@ defmodule PhilomenaWeb.UserAttributionView do def user_avatar(object, class \\ "avatar--100px") do user = object.user - if user and user.avatar do + if user && user.avatar do img_tag(avatar_url_root() <> object.user.avatar, class: class) else anonymous_avatar(object, class)