From a4a368613a82e3acafdfa42f909c77e0c89ad557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 6 Mar 2015 14:02:01 +0100 Subject: [PATCH] Use regexp.MustCompile instead of Compile ignoring err --- ra/registration-authority.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ra/registration-authority.go b/ra/registration-authority.go index 68e6f5992..7305df70b 100644 --- a/ra/registration-authority.go +++ b/ra/registration-authority.go @@ -29,8 +29,8 @@ func NewRegistrationAuthorityImpl() RegistrationAuthorityImpl { return RegistrationAuthorityImpl{} } -var dnsLabelRegexp, _ = regexp.Compile("^[a-zA-Z0-9-]*$") -var ipAddressRegexp, _ = regexp.Compile("^[0-9.]*$") +var dnsLabelRegexp = regexp.MustCompile("^[a-zA-Z0-9-]*$") +var ipAddressRegexp = regexp.MustCompile("^[0-9.]*$") func forbiddenIdentifier(id string) bool { // A DNS label is a part separated by dots, e.g. www.foo.net has labels