A library for handling DID identifiers used in Bluesky AT Protocol

fix in get_service when services is nil

+1 -1
+1 -1
lib/didkit/services.rb
··· 1 1 module DIDKit 2 2 module Services 3 3 def get_service(key, type) 4 - @services.detect { |s| s.key == key && s.type == type } 4 + @services&.detect { |s| s.key == key && s.type == type } 5 5 end 6 6 7 7 def pds_endpoint