Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit ac2da77

Browse files
committed
Merge pull request #4 from nmohoric/fix_percent
Returning computed value from percent
2 parents c10612e + c84be7a commit ac2da77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codacy/reporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def parse_report_file(report_file):
2828

2929
# Convert decimal string to floored int percent value
3030
def percent(s):
31-
float(s) * 100
31+
return float(s) * 100
3232

3333
# Parse the XML into the format expected by the API
3434
report_xml = minidom.parse(report_file)

0 commit comments

Comments
 (0)