diff options
author | OKURA Masafumi <[email protected]> | 2024-12-09 08:14:14 +0900 |
---|---|---|
committer | git <[email protected]> | 2024-12-08 23:14:18 +0000 |
commit | 895f2c21522e89a808ef6d746f48c28b86f02633 (patch) | |
tree | eb7eeba6175dec00e8c4750cfb1d4e7841a1ec13 /lib | |
parent | dd43af3be7eddb832c77ef367456fa023fed7d7a (diff) |
[ruby/rdoc] lint: Remove unreachable code
(https://github.com/ruby/rdoc/pull/1137)
This is an attempt to utilize RuboCop further.
RuboCop was added in https://github.com/ruby/rdoc/commit/9262fdd43a3a
but only a few rules have been enabled.
I believe we can utilize RuboCop more for better code quality,
especially with Lint cops.
This is the first step to enable other Lint cops.
This commit also exclude some auto generated files.
https://github.com/ruby/rdoc/commit/a53287fce0
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rdoc/rdoc.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb index 0276d430a9..a7f9239b62 100644 --- a/lib/rdoc/rdoc.rb +++ b/lib/rdoc/rdoc.rb @@ -395,7 +395,6 @@ The internal error was: $stderr.puts e.backtrace.join("\n\t") if $DEBUG_RDOC raise e - nil end ## |