mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Fix error handling in Version.Parse
This commit is contained in:
parent
3dd4212ccd
commit
0a173fcf9f
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ namespace System
|
||||||
}
|
}
|
||||||
|
|
||||||
let major = ParseComponent!(components.GetNext());
|
let major = ParseComponent!(components.GetNext());
|
||||||
let minor = ParseComponent!(components.GetNext());
|
let minor = ParseComponent!(Try!(components.GetNext()));
|
||||||
|
|
||||||
if (!components.HasMore)
|
if (!components.HasMore)
|
||||||
return Version(major, minor);
|
return Version(major, minor);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue