Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong color in Ruby if expression #34

Closed
maztak opened this issue Feb 17, 2021 · 1 comment
Closed

Wrong color in Ruby if expression #34

maztak opened this issue Feb 17, 2021 · 1 comment

Comments

@maztak
Copy link

maztak commented Feb 17, 2021

In the below case, the second 'end' color is wrong because of if user.email.blank? have no end.

    def self.new_with_session(params, session)
        super.tap do |user|
            if data = session["devise.facebook_data"] && session["devise.facebook_data"]["extra"]["raw_info"]
                user.email = data["email"] if user.email.blank?
            end
        end
    end
@alexanderadam
Copy link

Duplicate of #31

@maztak maztak closed this as completed Jul 20, 2022
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

No branches or pull requests

2 participants