Skip to content

Instantly share code, notes, and snippets.

@omajid
Last active August 10, 2017 20:51
Show Gist options
  • Save omajid/90ebbd58cc54473d2a295c261451c166 to your computer and use it in GitHub Desktop.
Save omajid/90ebbd58cc54473d2a295c261451c166 to your computer and use it in GitHub Desktop.
Fix bad return value in RoverSettings.MaxPrecedence
diff --git a/tools/dotnet-bootstrap/dotnet.bootstrap.py b/tools/dotnet-bootstrap/dotnet.bootstrap.py
index 92749bc..efbe77b 100755
--- a/tools/dotnet-bootstrap/dotnet.bootstrap.py
+++ b/tools/dotnet-bootstrap/dotnet.bootstrap.py
@@ -234,9 +234,9 @@ class RoverSettings:
versionB = SemanticVersion(versionStrB)
if(versionA > versionB):
- return versionA
+ return versionStrA
- return versionB
+ return versionStrB
@staticmethod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment