From 55c4afbbaeba174ef73e86939e2fa8b2b15871af Mon Sep 17 00:00:00 2001 From: alexanderttalvarez Date: Thu, 19 Dec 2024 09:20:16 +0100 Subject: [PATCH] Remove Logger.debug (#504) * Remove debug * Remove unused match variable --- lib/earmark_parser/line_scanner.ex | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/earmark_parser/line_scanner.ex b/lib/earmark_parser/line_scanner.ex index 04d5a2e4..df0c7377 100644 --- a/lib/earmark_parser/line_scanner.ex +++ b/lib/earmark_parser/line_scanner.ex @@ -259,11 +259,7 @@ defmodule Earmark.Parser.LineScanner do defp _create_list_item(match, indent, line) - defp _create_list_item([_, bullet, spaces, text] = match, indent, line) do - Logger.debug( - "Creating list item: #{inspect(match)}, indent: #{inspect(indent)}, line: #{inspect(line)}" - ) - + defp _create_list_item([_, bullet, spaces, text], indent, line) do sl = byte_size(spaces) sl1 = if sl > 3, do: 1, else: sl + 1 sl2 = sl1 + byte_size(bullet)