Skip to content
This repository was archived by the owner on Nov 12, 2024. It is now read-only.

Commit 03dad27

Browse files
committed
Rename method
1 parent 77b8128 commit 03dad27

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

teamscale_precommit_client/precommit_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def _format_findings(self, findings, branch):
200200
return ['> No findings.']
201201

202202
findings_without_path_prefix = list(
203-
map(lambda finding: self._remove_path_prefix_from_finding(finding), findings))
203+
map(lambda finding: self._copy_finding_without_path_prefix(finding), findings))
204204
sorted_findings = sorted(findings_without_path_prefix)
205205
return [self._format_message(finding) for finding in sorted_findings]
206206

@@ -220,7 +220,7 @@ def _format_message(self, finding):
220220

221221
return '%s | (%s)' % (message, link)
222222

223-
def _remove_path_prefix_from_finding(self, finding):
223+
def _copy_finding_without_path_prefix(self, finding):
224224
finding_without_path_prefix = copy.deepcopy(finding)
225225
finding_without_path_prefix.uniformPath = self._remove_path_prefix(finding_without_path_prefix.uniformPath)
226226
return finding_without_path_prefix

0 commit comments

Comments
 (0)