From 03f41f23065313be245ccddde36e6f1f920d08ec Mon Sep 17 00:00:00 2001 From: Franck Quintana Date: Fri, 11 Oct 2024 03:40:50 +0200 Subject: [PATCH] Delete useless code from documentation (#107) "var authRepo = (IManageApiKeys)appHost.TryResolve();" is never used. --- docs/api-key-authprovider.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/api-key-authprovider.md b/docs/api-key-authprovider.md index 59f7c68ec6..42809d1fcf 100644 --- a/docs/api-key-authprovider.md +++ b/docs/api-key-authprovider.md @@ -348,7 +348,6 @@ public class ConfigureAuth : IHostingStartup .Where(x => userWithKeysIds.Count == 0 || !userWithKeysIds.Contains(x.Id)) .Select(x => x.Id)); - var authRepo = (IManageApiKeys)appHost.TryResolve(); foreach (var userId in userIdsMissingKeys) { var apiKeys = authProvider.GenerateNewApiKeys(userId);