From 4c8cbea1bf492992db7c7a643348b672e22b5204 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Thu, 24 Oct 2013 10:53:35 -0400 Subject: [PATCH] Fixups from tiran's pull request. --- convert_mozilla_certdata.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/convert_mozilla_certdata.go b/convert_mozilla_certdata.go index 45cf9b2..9597998 100644 --- a/convert_mozilla_certdata.go +++ b/convert_mozilla_certdata.go @@ -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 ( @@ -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] == '#' { @@ -159,7 +158,7 @@ func parseInput(inFile io.Reader) (license, cvsId string, objects []*Object) { continue } if line == "BEGINDATA" { - begindata = true + beginData = true continue } @@ -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") }