Make linter happy

This commit is contained in:
Benedikt Kulmann
2020-08-19 12:44:15 +02:00
parent 65d71bd6fd
commit 20d95f23fa
3 changed files with 4 additions and 3 deletions

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"

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\-_]*$`)

View File

@@ -14,7 +14,7 @@ import (
var (
einstein = "a4d07560-a670-4be9-8d60-9b547751a208"
marie = "3c054db3-eec1-4ca4-b985-bc56dcf560cb"
//marie = "3c054db3-eec1-4ca4-b985-bc56dcf560cb"
s = Store{
dataPath: dataRoot,