Skip to content

Commit 4ad4074

Browse files
authored
Avoid Ruby 2.7 warning (#38)
1 parent 23c2250 commit 4ad4074

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bin/ruby_executable_hooks

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ end unless $0.end_with?('/executable-hooks-uninstaller')
1414

1515
content = File.read($0)
1616

17-
if
18-
(index = content.index("\n#!ruby\n")) && index > 0
19-
then
17+
if (index = content.index("\n#!ruby\n")) && index > 0
2018
skipped_content = content.slice!(0..index)
2119
start_line = skipped_content.count("\n") + 1
2220
eval content, binding, $0, start_line

0 commit comments

Comments
 (0)