1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-20 08:58:00 +02:00

Merge pull request #1473 from disarray2077/patch-5

Fix error handling in `Version.Parse`
This commit is contained in:
Brian Fiete 2022-03-01 18:54:10 +01:00 committed by GitHub
commit dcdc6c22e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,7 @@ namespace System
}
let major = ParseComponent!(components.GetNext());
let minor = ParseComponent!(components.GetNext());
let minor = ParseComponent!(Try!(components.GetNext()));
if (!components.HasMore)
return Version(major, minor);