Skip to content

Commit a934ac3

Browse files
author
Jef Spaleta
authored
Merge pull request #48 from nixwiz/fix_frozen_string_literal
Fixed frozen_string_literal issues
2 parents 7821091 + ed8f555 commit a934ac3

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
77

88
## [Unreleased]
99

10+
### Changed
11+
- Fixed frozen_string_literal issues
12+
1013
## [2.0.1] - 2020-03-06
1114

1215
### Changed

bin/check-haproxy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /usr/bin/env ruby
2-
# frozen_string_literal: true
2+
# frozen_string_literal: false
33

44
#
55
# check-haproxy.rb

bin/metrics-haproxy.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /usr/bin/env ruby
2-
# frozen_string_literal: true
2+
# frozen_string_literal: false
33

44
#
55
# metrics-haproxy.rb
@@ -39,10 +39,10 @@ class HAProxyMetrics < Sensu::Plugin::Metric::CLI::Graphite
3939
# Check http://cbonte.github.io/haproxy-dconv/1.7/management.html#9.1 for
4040
# haproxy stats CSV format.
4141

42-
TYPE_FRONTEND = '0'
43-
TYPE_BACKEND = '1'
44-
TYPE_SERVER = '2'
45-
TYPE_LISTENER = '3'
42+
TYPE_FRONTEND = '0'.freeze
43+
TYPE_BACKEND = '1'.freeze
44+
TYPE_SERVER = '2'.freeze
45+
TYPE_LISTENER = '3'.freeze
4646
# All fields are listed here for ease of long term maintenance.
4747
# Format: field_index => %w(haproxy-name friendly-name)
4848
CSV_FIELDS = {

0 commit comments

Comments
 (0)