Skip to content

Conversation

@ykitamura-mdsol
Copy link
Contributor

no longer reading config file

@ykitamura-mdsol
Copy link
Contributor Author

@ejennings-mdsol

Comment on lines -100 to -102
is_win = RUBY_PLATFORM =~ /mswin|windows|mingw32|cygwin/i
null_device = is_win ? 'NUL' : '/dev/null'
::Logger.new(File.open(null_device, File::WRONLY))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What changed that this is no longer needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rubocop doesn't like NUL and /dev/null:
https://github.com/mdsol/mauth-client-ruby/actions/runs/12077251048/job/33679854702?pr=70

lib/mauth/client.rb:101:34: C: [Correctable] Style/FileNull: Use File::NULL instead of NUL.
          null_device = is_win ? 'NUL' : '/dev/null'
                                 ^^^^^
lib/mauth/client.rb:101:42: C: [Correctable] Style/FileNull: Use File::NULL instead of /dev/null.
          null_device = is_win ? 'NUL' : '/dev/null'
                                         ^^^^^^^^^^^

@ykitamura-mdsol ykitamura-mdsol mentioned this pull request Jan 15, 2025
3 tasks
@ejennings-mdsol ejennings-mdsol merged commit dbb076a into master Jan 15, 2025
13 checks passed
@ejennings-mdsol ejennings-mdsol deleted the ykitamura-mdsol-patch-1 branch January 15, 2025 14:59
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.

3 participants