From 700e891b854f9a21f81614ef968dcc66a4a987da Mon Sep 17 00:00:00 2001 From: Anton Nikiforov Date: Wed, 24 Apr 2024 15:01:19 +0300 Subject: [PATCH] [#1103] Fix end of file and trim trailing whitespace Signed-off-by: Anton Nikiforov --- dev/.vscode-example/launch.json | 2 +- docs/authentication.md | 2 +- docs/images/authentication/authoverview.puml | 4 ++-- pkg/services/tree/ape.go | 4 +--- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/dev/.vscode-example/launch.json b/dev/.vscode-example/launch.json index 6aedde85e..990fd42a8 100644 --- a/dev/.vscode-example/launch.json +++ b/dev/.vscode-example/launch.json @@ -250,4 +250,4 @@ "stopAll": true } ] -} \ No newline at end of file +} diff --git a/docs/authentication.md b/docs/authentication.md index 544839b2c..3fe5ca512 100644 --- a/docs/authentication.md +++ b/docs/authentication.md @@ -67,4 +67,4 @@ Bearer token is generally used for access control but can also affect authentica ## FrostFS ID -## APE \ No newline at end of file +## APE diff --git a/docs/images/authentication/authoverview.puml b/docs/images/authentication/authoverview.puml index 1242fdfc6..20cac9f52 100644 --- a/docs/images/authentication/authoverview.puml +++ b/docs/images/authentication/authoverview.puml @@ -5,7 +5,7 @@ AddElementTag("smart-contract", $bgColor=#0abab5) Person(user, "User", "User with private key") -Container_Boundary(stor, "FrostFS Storage") { +Container_Boundary(stor, "FrostFS Storage") { Component(verify, "Sign Service", $descr="Check request signature") Component(apesvc, "APE Service") Component(objsvc, "Object service") @@ -25,4 +25,4 @@ Rel("NeoGo", ffsid, "Fetch users") Rel("NeoGo", policy, "Fetch policies") SHOW_LEGEND(true) -@enduml \ No newline at end of file +@enduml diff --git a/pkg/services/tree/ape.go b/pkg/services/tree/ape.go index f58721509..76ec254f0 100644 --- a/pkg/services/tree/ape.go +++ b/pkg/services/tree/ape.go @@ -19,9 +19,7 @@ import ( "github.com/nspcc-dev/neo-go/pkg/crypto/keys" ) -var ( - subjectNotFoundErrorMessage = "subject not found" -) +var subjectNotFoundErrorMessage = "subject not found" func (s *Service) checkAPE(container *core.Container, cid cid.ID, operation acl.Op, role acl.Role, publicKey *keys.PublicKey) error { namespace := ""