File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed
lib/puppet/provider/package Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -696,10 +696,6 @@ Lint/UnderscorePrefixedVariableName:
696
696
- ' lib/puppet/type/file/checksum_value.rb'
697
697
- ' lib/puppet/type/file/content.rb'
698
698
699
- Lint/UnreachableCode :
700
- Exclude :
701
- - ' lib/puppet/provider/package/portupgrade.rb'
702
-
703
699
# Configuration parameters: AllowedPatterns, IgnoredPatterns.
704
700
# AllowedPatterns: (?-mix:(exactly|at_least|at_most)\(\d+\)\.times)
705
701
Lint/UnreachableLoop :
Original file line number Diff line number Diff line change @@ -155,14 +155,7 @@ def latest
155
155
# Any other error (dump output to log)
156
156
raise Puppet ::ExecutionFailure , _ ( "Unexpected output from portversion: %{output}" ) % { output : output }
157
157
end
158
-
159
- # Just in case we still are running, return nil
160
- return nil
161
158
end
162
-
163
- # At this point normal operation has finished and we shouldn't have been called.
164
- # Error out and let the admin deal with it.
165
- raise Puppet ::Error , _ ( "portversion.latest() - fatal error with portversion: %{output}" ) % { output : output }
166
159
end
167
160
168
161
###### Query subcommand - return a hash of details if exists, or nil if it doesn't.
You can’t perform that action at this time.
0 commit comments