summaryrefslogtreecommitdiffstats
path: root/lib/colonial_twilight/colorized_string.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2024-03-20 14:24:42 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2024-03-20 14:24:42 +0100
commit4fe34a024c77df99b263f6b97c43f9870a9d3160 (patch)
treec2d7d09afe7303c739484dce324967bf6368aa82 /lib/colonial_twilight/colorized_string.rb
parentad77e25eec96122f94fc6ae2db258c1aea984980 (diff)
downloadcolonial-twilight-4fe34a024c77df99b263f6b97c43f9870a9d3160.zip
colonial-twilight-4fe34a024c77df99b263f6b97c43f9870a9d3160.tar.gz
some rubocop cleanup
Diffstat (limited to 'lib/colonial_twilight/colorized_string.rb')
-rw-r--r--lib/colonial_twilight/colorized_string.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/colonial_twilight/colorized_string.rb b/lib/colonial_twilight/colorized_string.rb
index 2a63852..65f2623 100644
--- a/lib/colonial_twilight/colorized_string.rb
+++ b/lib/colonial_twilight/colorized_string.rb
@@ -93,7 +93,8 @@ class String
def resolve(key, var)
return self.class.color_codes[var] + 30 if key == :fg
return self.class.color_codes[var] + 40 if key == :bg
- return self.class.color_modes[var] if key == :mode
+
+ self.class.color_modes[var] if key == :mode
end
end