moov-io / paygate

A RESTful API enabling electronic payments to be submitted and received without a deep understanding payment file specification
http://moov.io
Apache License 2.0
129 stars 31 forks source link

upload: always call Close() in early returns #632

Closed adamdecaf closed 3 years ago

codecov-io commented 3 years ago

Codecov Report

Merging #632 (dd3712f) into master (1bd0e32) will increase coverage by 0.16%. The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #632      +/-   ##
==========================================
+ Coverage   52.26%   52.42%   +0.16%     
==========================================
  Files          95       95              
  Lines        3293     3296       +3     
==========================================
+ Hits         1721     1728       +7     
+ Misses       1211     1210       -1     
+ Partials      361      358       -3     
Impacted Files Coverage Δ
pkg/upload/sftp.go 67.56% <66.66%> (+2.73%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 1bd0e32...dd3712f. Read the comment docs.