Make linter happy

This commit is contained in:
Benedikt Kulmann
2020-08-19 12:55:11 +02:00
parent 65d71bd6fd
commit 20d95f23fa
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -2,8 +2,8 @@ package svc
import (
"context"
"github.com/golang/protobuf/ptypes/empty"
"github.com/golang/protobuf/ptypes/empty"
"github.com/owncloud/ocis-pkg/v2/log"
"github.com/owncloud/ocis-pkg/v2/middleware"
"github.com/owncloud/ocis-settings/pkg/config"
+2 -1
View File
@@ -11,7 +11,8 @@ import (
var (
regexForAccountUUID = regexp.MustCompile(`^[A-Za-z0-9\-_.+@]+$`)
requireAccountID = []validation.Rule{
validation.Required,// use rule for validation error message consistency (".. must not be blank" on empty strings)
// use rule for validation error message consistency (".. must not be blank" on empty strings)
validation.Required,
validation.Match(regexForAccountUUID),
}
regexForKeys = regexp.MustCompile(`^[A-Za-z0-9\-_]*$`)