Skip to content

Commit 628e404

Browse files
committed
Use ternary operator
1 parent 7b90773 commit 628e404

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

bindings/ruby/Rakefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ SOURCES = FileList[]
77

88
EXTSOURCES.each do |src|
99
basename = src.pathmap("%f")
10-
dest = if basename == "LICENSE"
11-
basename
12-
else
13-
src.pathmap("%{../..,ext}p")
14-
end
10+
dest = basename == "LICENSE" ? basename : src.pathmap("%{../..,ext}p")
1511
dir = dest.pathmap("%d")
1612
file src
1713
directory dir

0 commit comments

Comments
 (0)