Skip to content

fix: correct secure_compare indentation to remove Ruby 4 warning#188

Open
masterkain wants to merge 1 commit intoomniauth:masterfrom
masterkain:feat/fix-ruby4-warning-indentation
Open

fix: correct secure_compare indentation to remove Ruby 4 warning#188
masterkain wants to merge 1 commit intoomniauth:masterfrom
masterkain:feat/fix-ruby4-warning-indentation

Conversation

@masterkain
Copy link
Copy Markdown

@masterkain masterkain commented Mar 5, 2026

Summary

  • fix the indentation of secure_compare in lib/omniauth/strategies/oauth2.rb
  • remove Ruby 4 warning: mismatched indentations at 'end' with 'def'

Reproduction

ruby -w -e "gem 'omniauth-oauth2','1.9.0'; require 'omniauth-oauth2'"

Before this change, Ruby 4 emits:

warning: mismatched indentations at 'end' with 'def'

Verification

ruby -w -c lib/omniauth/strategies/oauth2.rb
bundle exec rspec spec/omniauth/strategies/oauth2_spec.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant