Permalink
Browse files

Minor tweak to update.go

When processing the JS metadata, trim the comment marker off without
assuming it's a separate field.
  • Loading branch information...
1 parent fb16e06 commit f8da3fb492a80f46c0a2731197bcf3b67d6fe558 @kballard committed May 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 update.go
View
@@ -97,7 +97,7 @@ func fetchVersion() (version string, err error) {
break
}
}
- fields := bytes.Fields(line)[1:] // skip the //
+ fields := bytes.Fields(line[2:]) // skip the //
if string(fields[0]) == "@description" {
if string(fields[1]) == "Version" {
return string(fields[2]), nil

0 comments on commit f8da3fb

Please sign in to comment.