Skip to content

Commit 5a02478

Browse files
committed
python@3.6: fix RuboCop Style/ConditionalAssignment.
1 parent 61c4d0f commit 5a02478

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Formula/python@3.6.rb‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,10 @@ def sitecustomize
280280
end
281281

282282
def caveats
283-
if prefix.exist?
284-
xy = (prefix/"Frameworks/Python.framework/Versions").children.min.basename.to_s
283+
xy = if prefix.exist?
284+
(prefix/"Frameworks/Python.framework/Versions").children.min.basename.to_s
285285
else
286-
xy = version.to_s.slice(/(3\.\d)/) || "3.6"
286+
version.to_s.slice(/(3\.\d)/) || "3.6"
287287
end
288288
<<~EOS
289289
You can install Python packages with

0 commit comments

Comments
 (0)