We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4bf8c56 + 31fa638 commit 65caa65Copy full SHA for 65caa65
lib/cc/engine/bundler_audit/unpatched_gem_issue.rb
@@ -41,12 +41,12 @@ def to_json(*a)
41
attr_reader :advisory, :gem, :gemfile_lock_lines
42
43
def content_body
44
- [
45
- "**Advisory**: #{identifier}",
46
- "**Criticality**: #{advisory.criticality.capitalize}",
47
- "**URL**: #{advisory.url}",
48
- "**Solution**: #{solution}",
49
- ].join("\n\n")
+ lines = ["**Advisory**: #{identifier}"]
+ lines << "**Criticality**: #{advisory.criticality.capitalize}" if advisory.criticality
+ lines << "**URL**: #{advisory.url}"
+ lines << "**Solution**: #{solution}"
+
+ lines.join("\n\n")
50
end
51
52
def line_number
0 commit comments