Skip to content

Commit

Permalink
Update RUBY_PLATFORM conditional to Ruby 3.1
Browse files Browse the repository at this point in the history
Differential Revision: D65979906

fbshipit-source-id: bc7e0e3856ea7006213ccf212a40b59086aad148
  • Loading branch information
Billy Barrese authored and facebook-github-bot committed Nov 21, 2024
1 parent 0d28de2 commit 2791f2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion itchef/cookbooks/cpe_helpers/libraries/cpe_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def self.linux?
end

def self.windows?
RUBY_PLATFORM =~ /mswin|mingw32|windows/
RUBY_PLATFORM =~ /mswin|mingw|windows/
end

def self.logged_on_user_query
Expand Down
2 changes: 1 addition & 1 deletion itchef/cookbooks/fb_helpers/libraries/fb_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ def self.linux?
end

def self.windows?
RUBY_PLATFORM =~ /mswin|mingw32|windows/
RUBY_PLATFORM =~ /mswin|mingw|windows/
end

# mountpoint? determines if a path string represents a mountpoint
Expand Down

0 comments on commit 2791f2e

Please sign in to comment.