gin icon indicating copy to clipboard operation
gin copied to clipboard

update context.go Get/Set method use defer

Open youngxhui opened this issue 3 years ago • 1 comments

Using defer to unlock is more in line with go standards

youngxhui avatar Dec 08 '22 12:12 youngxhui

Codecov Report

Merging #3429 (fba9b29) into master (cc367f9) will increase coverage by 0.35%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #3429      +/-   ##
==========================================
+ Coverage   98.27%   98.63%   +0.35%     
==========================================
  Files          42       42              
  Lines        3137     3139       +2     
==========================================
+ Hits         3083     3096      +13     
+ Misses         40       29      -11     
  Partials       14       14              
Flag Coverage Δ
98.63% <100.00%> (+0.35%) :arrow_up:
go-1.16 ∅ <ø> (∅)
go-1.17 98.53% <100.00%> (+0.35%) :arrow_up:
go-1.18 98.53% <100.00%> (+0.35%) :arrow_up:
go-1.19 98.63% <100.00%> (+0.35%) :arrow_up:
macos-latest 98.63% <100.00%> (+0.35%) :arrow_up:
ubuntu-latest 98.63% <100.00%> (+0.35%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
context.go 97.96% <100.00%> (ø)
recovery.go 98.11% <0.00%> (+0.03%) :arrow_up:
render/toml.go 100.00% <0.00%> (+100.00%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov[bot] avatar Dec 22 '22 15:12 codecov[bot]