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

fix indentation warning #322

Merged
merged 1 commit into from
Jun 9, 2022
Merged

fix indentation warning #322

merged 1 commit into from
Jun 9, 2022

Conversation

lygaret
Copy link
Contributor

@lygaret lygaret commented Jun 9, 2022

this minor change fixes a warning in ruby 3.1 about mismatched indentation.

safety@ditdash homelab % bundle exec ruby -v     
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-darwin20]
safety@ditdash homelab % bundle info 
safety@ditdash homelab % sh
sh-3.2$ bundle exec ruby -v
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-darwin20]
sh-3.2$ bundle info config
  * config (4.0.0)
        Summary: Effortless multi-environment settings in Rails, Sinatra, Pandrino and others
        Homepage: https://github.com/rubyconfig/config
        Path: /Users/safety/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/config-4.0.0
sh-3.2$ bundle exec irb -w
irb(main):001:0> require 'config'
/Users/safety/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/config-4.0.0/lib/config/sources/yaml_source.rb:25: warning: mismatched indentations at 'rescue' with 'def' at 16
=> true
irb(main):002:0> 

this minor change fixes a warning in ruby 3.1 about mismatched indentation.

```
safety@ditdash homelab % bundle exec ruby -v     
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-darwin20]
safety@ditdash homelab % bundle info 
safety@ditdash homelab % sh
sh-3.2$ bundle exec ruby -v
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-darwin20]
sh-3.2$ bundle info config
  * config (4.0.0)
        Summary: Effortless multi-environment settings in Rails, Sinatra, Pandrino and others
        Homepage: https://github.com/rubyconfig/config
        Path: /Users/safety/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/config-4.0.0
sh-3.2$ bundle exec irb -w
irb(main):001:0> require 'config'
/Users/safety/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/config-4.0.0/lib/config/sources/yaml_source.rb:25: warning: mismatched indentations at 'rescue' with 'def' at 16
=> true
irb(main):002:0> 
```
@pkuczynski
Copy link
Member

Thanks!

@pkuczynski pkuczynski added this to the 4.0.1 milestone Jun 9, 2022
@pkuczynski pkuczynski self-requested a review June 9, 2022 18:43
@pkuczynski pkuczynski merged commit 87709f9 into rubyconfig:master Jun 9, 2022
@lygaret lygaret deleted the patch-1 branch June 12, 2022 04:23
danilogco pushed a commit to dcotecnologia/confset that referenced this pull request Feb 17, 2023
@pkuczynski pkuczynski added the bug label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants