Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove obsolete loop variable shadows

Manav Rathie2297681b64d
diff --git a/server/pkg/controller/social/comment_validation_test.go b/server/pkg/controller/social/comment_validation_test.go
index b012d12b98..2333beb7f9 100644
--- a/server/pkg/controller/social/comment_validation_test.go
+++ b/server/pkg/controller/social/comment_validation_test.go
@@ -29,7 +29,6 @@ func TestValidateReplyFileContext(t *testing.T) {
}
for _, tc := range tests {
- tc := tc
t.Run(tc.name, func(t *testing.T) {
err := validateReplyFileContext(tc.parent, tc.request)
if tc.wantErr {
@@ -63,7 +62,6 @@ func TestValidateCommentReactionContext(t *testing.T) {
}
for _, tc := range tests {
- tc := tc
t.Run(tc.name, func(t *testing.T) {
err := validateCommentReactionContext(tc.comment, tc.request)
if tc.wantErr {