Skip to content

Commit d3ab332

Browse files
committed
Fix Naming/PredicateMethod from new Rubocop version
1 parent 5a276e2 commit d3ab332

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ruby_llm/providers/bedrock/streaming/prelude_handling.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def read_prelude(chunk, offset)
3030
end
3131

3232
def valid_lengths?(total_length, headers_length)
33-
validate_length_constraints(total_length, headers_length)
33+
valid_length_constraints?(total_length, headers_length)
3434
end
3535

3636
def calculate_positions(offset, total_length, headers_length)
@@ -67,7 +67,7 @@ def scan_range(chunk, start_offset)
6767

6868
def valid_prelude_at_position?(chunk, pos)
6969
lengths = extract_potential_lengths(chunk, pos)
70-
validate_length_constraints(*lengths)
70+
valid_length_constraints?(*lengths)
7171
end
7272

7373
def extract_potential_lengths(chunk, pos)
@@ -77,7 +77,7 @@ def extract_potential_lengths(chunk, pos)
7777
]
7878
end
7979

80-
def validate_length_constraints(total_length, headers_length)
80+
def valid_length_constraints?(total_length, headers_length)
8181
return false if total_length.nil? || headers_length.nil?
8282
return false if total_length <= 0 || total_length > 1_000_000
8383
return false if headers_length <= 0 || headers_length >= total_length

0 commit comments

Comments
 (0)