diff --git a/shard.yml b/shard.yml index 47654bb..2e83cec 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: tartrazine -version: 0.4.0 +version: 0.5.1 authors: - Roberto Alsina diff --git a/src/formatters/ansi.cr b/src/formatters/ansi.cr index 8efeb25..fc9e608 100644 --- a/src/formatters/ansi.cr +++ b/src/formatters/ansi.cr @@ -14,7 +14,7 @@ module Tartrazine def format(text : String, lexer : Lexer) : String outp = String::Builder.new("") format(text, lexer, outp) - return outp.to_s + outp.to_s end def format(text : String, lexer : Lexer, outp : IO) : Nil diff --git a/src/formatters/html.cr b/src/formatters/html.cr index 4217cdd..6fab641 100644 --- a/src/formatters/html.cr +++ b/src/formatters/html.cr @@ -37,10 +37,9 @@ module Tartrazine def format(text : String, lexer : Lexer) : String outp = String::Builder.new("") format(text, lexer, outp) - return outp.to_s + outp.to_s end - def format(text : String, lexer : Lexer, io : IO) : Nil pre, post = wrap_standalone io << pre if standalone? diff --git a/src/formatters/json.cr b/src/formatters/json.cr index c9d6a39..5ba28ea 100644 --- a/src/formatters/json.cr +++ b/src/formatters/json.cr @@ -7,10 +7,9 @@ module Tartrazine def format(text : String, lexer : Lexer) : String outp = String::Builder.new("") format(text, lexer, outp) - return outp.to_s + outp.to_s end - def format(text : String, lexer : Lexer, io : IO) : Nil tokenizer = Tokenizer.new(lexer, text) io << Tartrazine::Lexer.collapse_tokens(tokenizer.to_a).to_json