From 5a931e5d2dbf2fdbc0eabb0863342ea3279d0c5f Mon Sep 17 00:00:00 2001 From: Alex Koutmos Date: Wed, 27 Apr 2022 02:45:34 -0400 Subject: [PATCH] Fixing CI errors --- .credo.exs | 2 +- lib/mjml_eex/tokenizer.ex | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.credo.exs b/.credo.exs index b0b7b30..f23b1b4 100644 --- a/.credo.exs +++ b/.credo.exs @@ -127,7 +127,7 @@ {Credo.Check.Refactor.MapJoin, []}, {Credo.Check.Refactor.NegatedConditionsInUnless, []}, {Credo.Check.Refactor.NegatedConditionsWithElse, []}, - {Credo.Check.Refactor.Nesting, []}, + {Credo.Check.Refactor.Nesting, [max_nesting: 3]}, {Credo.Check.Refactor.UnlessWithElse, []}, {Credo.Check.Refactor.WithClauses, []}, {Credo.Check.Refactor.FilterFilter, []}, diff --git a/lib/mjml_eex/tokenizer.ex b/lib/mjml_eex/tokenizer.ex index d84fe95..d6681b0 100644 --- a/lib/mjml_eex/tokenizer.ex +++ b/lib/mjml_eex/tokenizer.ex @@ -71,9 +71,9 @@ defmodule MjmlEEx.Tokenizer do marker = if key in [:middle_expr, :end_expr] and marker != '' do - message = - "unexpected beginning of EEx tag \"<%#{marker}\" on \"<%#{marker}#{expr}%>\", " <> - "please remove \"#{marker}\"" + message = """ + unexpected beginning of EEx tag \"<%#{marker}\" on \"<%#{marker}#{expr}%>\", please remove \"#{marker}\" + """ :elixir_errors.erl_warn({line, column}, state.file, message) ''