From f64c91801ef19125464741bf729a5d02e33b6403 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Sat, 10 Aug 2024 16:58:36 -0300 Subject: [PATCH] lint --- src/formatters/html.cr | 2 +- src/styles.cr | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/formatters/html.cr b/src/formatters/html.cr index 3cc18bc..2aacf69 100644 --- a/src/formatters/html.cr +++ b/src/formatters/html.cr @@ -39,7 +39,7 @@ module Tartrazine lines = group_tokens_in_lines(lexer.tokenize(text)) output = String.build do |outp| if surrounding_pre? - pre_style= wrap_long_lines? ? "style=\"white-space: pre-wrap; word-break: break-word;\"" : "" + pre_style = wrap_long_lines? ? "style=\"white-space: pre-wrap; word-break: break-word;\"" : "" outp << "
"
         end
         ""
diff --git a/src/styles.cr b/src/styles.cr
index 4fcf410..d84f1b5 100644
--- a/src/styles.cr
+++ b/src/styles.cr
@@ -17,7 +17,7 @@ module Tartrazine
       raise ex unless ex.message.try &.includes? "Theme not found"
     end
     begin
-      return Theme.from_xml(ThemeFiles.get("/#{name}.xml").gets_to_end)
+      Theme.from_xml(ThemeFiles.get("/#{name}.xml").gets_to_end)
     rescue
       raise Exception.new("Theme #{name} not found")
     end
@@ -187,9 +187,9 @@ module Tartrazine
         return Color.new(127, 127, 127)
       end
       if base_color.dark?
-        return base_color.lighter(0.2)
+        base_color.lighter(0.2)
       else
-        return base_color.darker(0.2)
+        base_color.darker(0.2)
       end
     end
   end