DEV: Prevent deprecation warnings being incorrectly logged

DEV: Prevent deprecation warnings being incorrectly logged

diff --git a/lib/plugin/instance.rb b/lib/plugin/instance.rb
index 917f322..b19d6ce 100644
--- a/lib/plugin/instance.rb
+++ b/lib/plugin/instance.rb
@@ -511,7 +511,7 @@ class Plugin::Instance
       provider = Auth::AuthProvider.new
 
       Auth::AuthProvider.auth_attributes.each do |sym|
-        provider.send "#{sym}=", opts.delete(sym)
+        provider.send "#{sym}=", opts.delete(sym) if opts.has_key?(sym)
       end
 
       begin

GitHub
sha: 23c65feb

3 Likes