This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
pypihub
mirror of
https://github.com/brettlangdon/pypihub.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
1
Wiki
Activity
Browse Source
much simpler logic without requiring a branch condition
Justin LeFebvre
12 years ago
parent
b5ecf012db
commit
50c0e52521
1 changed files
with
1 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-4
semver.go
+ 1
- 4
semver.go
View File
@ -360,10 +360,7 @@ func containsOnly(s string, set string) bool {
}
func
hasLeadingZeroes
(
s
string
)
bool
{
if
len
(
s
)
>
1
{
return
strings
.
HasPrefix
(
s
,
"0"
)
}
return
false
return
len
(
s
)
>
1
&&
s
[
0
]
==
'0'
}
// Creates a new valid build version
Write
Preview
Loading…
Cancel
Save