caarlos0 / go-gumroad

Easily check licenses against Gumroad's API.
https://pkg.go.dev/github.com/caarlos0/go-gumroad
MIT License
19 stars 5 forks source link

feat: return early if product or key is blank #7

Closed MrGossett closed 2 years ago

MrGossett commented 2 years ago

Adds a quick guard in doCheck to return early if either product or key is blank. This avoids an API call to GumRoad for data that is certain to be invalid.

codecov[bot] commented 2 years ago

Codecov Report

Merging #7 (55f250b) into main (7e2d64b) will increase coverage by 11.08%. The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             main       #7       +/-   ##
===========================================
+ Coverage   73.52%   84.61%   +11.08%     
===========================================
  Files           1        1               
  Lines          34       39        +5     
===========================================
+ Hits           25       33        +8     
+ Misses          6        4        -2     
+ Partials        3        2        -1     
Impacted Files Coverage Δ
main.go 84.61% <100.00%> (+11.08%) :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 7e2d64b...55f250b. Read the comment docs.

caarlos0 commented 2 years ago

noice!