lib/u3d/commands.rb in u3d-1.2.2 vs lib/u3d/commands.rb in u3d-1.2.3
- old
+ new
@@ -340,12 +340,11 @@
unity = installed.find { |u| u.version == version }
if unity.nil?
UI.verbose "Version #{version} of Unity is not installed yet"
else
UI.verbose "Unity #{version} is installed at #{unity.root_path}"
- return unity
end
- nil
+ unity
end
# rubocop:disable Metrics/BlockNesting
def enforce_setup_coherence(packages, options, unity, definition)
if options[:all]