1
0
Fork 0

Update linter

This commit is contained in:
Ludovic Fernandez 2020-05-11 12:06:07 +02:00 committed by GitHub
parent f12c27aa7c
commit 328611c619
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
157 changed files with 489 additions and 508 deletions

View file

@ -13,7 +13,7 @@ const (
key contextKey = iota
)
// AddInContext Adds the provider name in the context
// AddInContext Adds the provider name in the context.
func AddInContext(ctx context.Context, elementName string) context.Context {
parts := strings.Split(elementName, "@")
if len(parts) == 1 {
@ -39,7 +39,7 @@ func GetQualifiedName(ctx context.Context, elementName string) string {
return elementName
}
// MakeQualifiedName Creates a qualified name for an element
// MakeQualifiedName Creates a qualified name for an element.
func MakeQualifiedName(providerName string, elementName string) string {
return elementName + "@" + providerName
}