diff pkg/imports/bn.go @ 2765:41f5ac76d642

BT import: allow for rb and lb to be null. As rb_lb is optional according to drc this is the right thing to do.
author Sascha Wilde <wilde@intevation.de>
date Thu, 21 Mar 2019 18:55:52 +0100
parents 018f979f9e23
children b3c3c5b5b7c1
line wrap: on
line diff
--- a/pkg/imports/bn.go	Thu Mar 21 18:21:18 2019 +0100
+++ b/pkg/imports/bn.go	Thu Mar 21 18:55:52 2019 +0100
@@ -126,12 +126,12 @@
 
 var rblbRe = regexp.MustCompile(`(..)_(..)`)
 
-func splitRBLB(s string) (string, string) {
+func splitRBLB(s string) (*string, *string) {
 	m := rblbRe.FindStringSubmatch(s)
 	if len(m) == 0 {
-		return "", ""
+		return nil, nil
 	}
-	return m[1], m[2]
+	return &m[1], &m[2]
 }
 
 func revisitingTime(s string) int {