summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2023-01-21 20:21:00 +0100
committerSamantaz Fox <coding@samantaz.fr>2023-01-21 20:21:00 +0100
commitebc02d0be3a5ef64beb47e772500f960234cb03c (patch)
treec09f20534a39d663111056faa69560a64559140e /src
parent030070f1ebe162b05adfb3ef7fce754cf25ba8db (diff)
parentcf93c94fc43bdb19160555747409b0a59b0c5f6b (diff)
downloadinvidious-ebc02d0be3a5ef64beb47e772500f960234cb03c.tar.gz
invidious-ebc02d0be3a5ef64beb47e772500f960234cb03c.tar.bz2
invidious-ebc02d0be3a5ef64beb47e772500f960234cb03c.zip
Formatting fix for Crystal nightly (#3586)
Diffstat (limited to 'src')
-rw-r--r--src/invidious/helpers/json_filter.cr6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/invidious/helpers/json_filter.cr b/src/invidious/helpers/json_filter.cr
index b8e8f96d..3f4080ba 100644
--- a/src/invidious/helpers/json_filter.cr
+++ b/src/invidious/helpers/json_filter.cr
@@ -20,7 +20,7 @@ module JSONFilter
/^\(|\(\(|\/\(/
end
- def self.parse_fields(fields_text : String) : Nil
+ def self.parse_fields(fields_text : String, &) : Nil
if fields_text.empty?
raise FieldsParser::ParseError.new "Fields is empty"
end
@@ -42,7 +42,7 @@ module JSONFilter
parse_nest_groups(fields_text) { |nest_list| yield nest_list }
end
- def self.parse_single_nests(fields_text : String) : Nil
+ def self.parse_single_nests(fields_text : String, &) : Nil
single_nests = remove_nest_groups(fields_text)
if !single_nests.empty?
@@ -60,7 +60,7 @@ module JSONFilter
end
end
- def self.parse_nest_groups(fields_text : String) : Nil
+ def self.parse_nest_groups(fields_text : String, &) : Nil
nest_stack = [] of NamedTuple(group_name: String, closing_bracket_index: Int64)
bracket_pairs = get_bracket_pairs(fields_text, true)