File Location of Vulnerability shows colon after file if no line number exists
Summary
The file location of the vulnerability should not show the colon at the end of the file name if there is no line number associated with the vulnerability.
Steps to reproduce
Go to https://gitlab.com/jschafer/webgoat/-/security/vulnerabilities/759668 and see the Location
section
Example Project
https://gitlab.com/jschafer/webgoat/-/security/vulnerabilities/759668
What is the current bug behavior?
The file location of the vulnerability shows the colon at the end of the file name even though there is no line number associated with the vulnerability.
What is the expected correct behavior?
The file location of the vulnerability should not show the colon at the end of the file name if there is no line number associated with the vulnerability.!
Relevant logs and/or screenshots
Screen_Shot_2020-04-15_at_11.49.51_AM
Possible fixes
Fix string at https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/helpers/vulnerabilities_helper.rb#L49