Skip to content

Commit 2ad73c0

Browse files
dingsdaxClaude Sonnet 4.6
andcommitted
fix(yabeda): Replace endless method syntax for Ruby 2.7 compatibility
Endless method syntax (def m() = val) requires Ruby 3.0+. Replace with conventional empty method bodies (def m; end) so RuboCop using the Ruby 2.7 parser does not reject the file. Co-Authored-By: Claude Sonnet 4.6 <noreply@example.com>
1 parent c41fc31 commit 2ad73c0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

sentry-yabeda/lib/sentry/yabeda/adapter.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ module Sentry
66
module Yabeda
77
class Adapter < ::Yabeda::BaseAdapter
88
# Sentry does not require pre-registration of metrics
9-
def register_counter!(_metric) = nil
10-
def register_gauge!(_metric) = nil
11-
def register_histogram!(_metric) = nil
12-
def register_summary!(_metric) = nil
9+
def register_counter!(_metric); end
10+
def register_gauge!(_metric); end
11+
def register_histogram!(_metric); end
12+
def register_summary!(_metric); end
1313

1414
def perform_counter_increment!(counter, tags, increment)
1515
return unless enabled?

0 commit comments

Comments
 (0)