Skip to content

Commit

Permalink
Fixups from tiran's pull request.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Langley committed Oct 24, 2013
1 parent 8c49d9f commit 4c8cbea
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions convert_mozilla_certdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// certificates in PEM form.
//
// A current version of certdata.txt can be downloaded from:
// https://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1
// https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt
package main

import (
Expand Down Expand Up @@ -146,8 +146,7 @@ func parseInput(inFile io.Reader) (license, cvsId string, objects []*Object) {
}

var currentObject *Object
var begindata bool
begindata = false
var beginData bool

for line, eof := getLine(in, &lineNo); !eof; line, eof = getLine(in, &lineNo) {
if len(line) == 0 || line[0] == '#' {
Expand All @@ -159,7 +158,7 @@ func parseInput(inFile io.Reader) (license, cvsId string, objects []*Object) {
continue
}
if line == "BEGINDATA" {
begindata = true
beginData = true
continue
}

Expand Down Expand Up @@ -195,8 +194,8 @@ func parseInput(inFile io.Reader) (license, cvsId string, objects []*Object) {
value: value,
}
}
if !begindata {

if !beginData {
log.Fatalf("Read whole input and failed to find BEGINDATA")
}

Expand Down

0 comments on commit 4c8cbea

Please # to comment.