1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

semver: run v fmt (#7439)

This commit is contained in:
zakuro
2020-12-22 04:25:19 +09:00
committed by GitHub
parent 805ec8e177
commit fade162471
5 changed files with 15 additions and 45 deletions

View File

@ -10,9 +10,7 @@ fn is_version_valid(input string) bool {
[inline]
fn coerce_version(input string) ?Version {
raw_ver := parse(input)
ver := raw_ver.coerce() or {
return error('Invalid version: $input')
}
ver := raw_ver.coerce() or { return error('Invalid version: $input') }
return ver
}