If you need to use a raster PNG badge, change the '.svg' to '.png' in the link
Remove defer Statement
This small patch removes a defer statement inside of a for loop and
calls Close after the scanner is done reading the file.
new or added
relevant lines covered
hits per line