Skip to content

Commit c5de989

Browse files
committed
Move FailOnError to correct place.
1 parent 2e522b8 commit c5de989

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/ocsp-responder/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ func main() {
157157
cmd.FailOnError(err, "Reading DB config")
158158
if dbConnect == "" {
159159
dbConnect = config.Source
160-
cmd.FailOnError(err, fmt.Sprintf("Source was not a URL: %s", config.Source))
161160
}
162161
url, err := url.Parse(dbConnect)
162+
cmd.FailOnError(err, fmt.Sprintf("Source was not a URL: %s", config.Source))
163163

164164
if url.Scheme == "mysql+tcp" {
165165
auditlogger.Info(fmt.Sprintf("Loading OCSP Database for CA Cert: %s", c.Common.IssuerCert))

0 commit comments

Comments
 (0)