We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e90ce2 commit 865208eCopy full SHA for 865208e
lib/pgpm/package/metadata.rb
@@ -25,23 +25,23 @@ def broken?
25
26
module ClassMethods
27
def extension_name
28
- self[:latest].extension_name
+ self[:latest]&.extension_name
29
end
30
31
def description
32
- self[:latest].description
+ self[:latest]&.description
33
34
35
def summary
36
- self[:latest].summary
+ self[:latest]&.summary
37
38
39
def license
40
- self[:latest].license
+ self[:latest]&.license
41
42
43
def all_searchable_texts
44
- self[:latest].all_searchable_texts
+ self[:latest]&.all_searchable_texts || []
45
46
47
0 commit comments