sensu-plugins / sensu-plugins-graphite

This plugin provides native Graphite instrumentation for monitoring, including: replication status, various Graphite data queries, mutators, and handlers
http://sensu-plugins.io
MIT License
22 stars 45 forks source link

Remove ternary true : false #44

Closed baweaver closed 7 years ago

baweaver commented 7 years ago

Adding a ternary to something that returns a boolean is redundant:

[1] pry(main)> true == true
=> true
[2] pry(main)> true == true ? true : false
=> true
[3] pry(main)> true == false ? true : false
=> false
[4] pry(main)> true == false
=> false

Pull Request Checklist

Is this in reference to an existing issue?

General

New Plugins

Purpose

Known Compatablity Issues