chef / ohai

Ohai profiles your system and emits JSON
https://docs.chef.io/ohai.html
Apache License 2.0
681 stars 450 forks source link

Fix linter error #1770

Closed marcparadise closed 2 years ago

marcparadise commented 2 years ago

Makes this function a one-liner too, because the return is implicit and the evaluation of the conditionals will yield true or false.

Signed-off-by: Marc A. Paradise marc.paradise@gmail.com

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication