From e89ee921ee863f6766b6aeaa140ff34bd7f6dc57 Mon Sep 17 00:00:00 2001 From: Taras Petruk Date: Sun, 28 Jul 2019 19:29:15 +0300 Subject: [PATCH] (GH-1889) Fix: Removal of ApiKey broken `remove_api_key` was previously not working properly. The API key string did not get removed from the config file due to incorrect implementation of Equals method in ConfigFileApiKeySettings class. Current commit fixes this issue. --- .../infrastructure.app/configuration/ConfigFileApiKeySetting.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chocolatey/infrastructure.app/configuration/ConfigFileApiKeySetting.cs b/src/chocolatey/infrastructure.app/configuration/ConfigFileApiKeySetting.cs index 6913328737..e2a9237bf4 100644 --- a/src/chocolatey/infrastructure.app/configuration/ConfigFileApiKeySetting.cs +++ b/src/chocolatey/infrastructure.app/configuration/ConfigFileApiKeySetting.cs @@ -43,7 +43,7 @@ public override bool Equals(object obj) var item = (ConfigFileApiKeySetting) obj; return (Source == item.Source) - && (Key == item.Source); + && (Key == item.Key); } public override int GetHashCode()