diff options
Diffstat (limited to 'lib/chef/deprecated.rb')
-rw-r--r-- | lib/chef/deprecated.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/deprecated.rb b/lib/chef/deprecated.rb index cda8e197d3..3f855530eb 100644 --- a/lib/chef/deprecated.rb +++ b/lib/chef/deprecated.rb @@ -80,7 +80,7 @@ class Chef # Don't buffer the whole file in memory, so read it one line at a time. line_no = $2.to_i location_file = ::File.open($1) - (line_no - 1).times { location_file.readline } # Read all the lines we don't care about. + (line_no - 1).times do location_file.readline end # Read all the lines we don't care about. relevant_line = location_file.readline relevant_line.match?(/#.*chef:silence_deprecation($|[^:]|:#{self.class.deprecation_key})/) end |