Skip to content

Commit

Permalink
Fix newline SPI handling
Browse files Browse the repository at this point in the history
  • Loading branch information
porter-stripe committed Apr 8, 2024
1 parent 15ad63f commit 1c19a8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ci_scripts/check_for_new_public_apis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def check_spi_protection(file)


File.foreach(file) do |line|
previous_line_spi_annotated = false
line = line.strip
opening_braces = line.count('{')
closing_braces = line.count('}')
Expand All @@ -35,7 +34,7 @@ def check_spi_protection(file)
public_items << (File.basename(file) + ": " + line.lstrip.chomp('{').rstrip)
end

previous_line_spi_annotated = line.include?("@_spi(")
previous_line_spi_annotated = line.match?(/@_spi\(\w+\)/)
in_spi_protected_block = false if block_depth == 0
end

Expand Down

0 comments on commit 1c19a8a

Please sign in to comment.