Skip to content

Commit ebb59c4

Browse files
committed
(PUP-11841) Fix ruby -w warnings
1 parent 96f711a commit ebb59c4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/puppet/pops/types/type_calculator.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def type(c)
234234
when c == Hash
235235
# Assume hash of any
236236
type = PHashType::DEFAULT
237-
else
237+
else
238238
type = PRuntimeType.new(:ruby, c.name)
239239
end
240240
type

lib/puppet/pops/types/type_factory.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def self.pattern(*regular_expressions)
282282
when PPatternType
283283
re.patterns
284284

285-
else
285+
else
286286
raise ArgumentError, "Only String, Regexp, Pattern-Type, and Regexp-Type are allowed: got '#{re.class}"
287287
end
288288
end.flatten.uniq

lib/puppet/provider/service/daemontools.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def enable
157157
Puppet::FileSystem.symlink(self.daemon, self.service)
158158
end
159159
end
160-
rescue Puppet::ExecutionFailure
160+
rescue Puppet::ExecutionFailure
161161
raise Puppet::Error.new( "No daemon directory found for #{self.service}", $!)
162162
end
163163

0 commit comments

Comments
 (0)