globusdigital / deep-copy

Deep copy generator
BSD 3-Clause "New" or "Revised" License
150 stars 34 forks source link

Merge variable declaration and assignment #5

Closed fatih closed 4 years ago

fatih commented 4 years ago

We can combine a variable declaration and assignment into a single line. If we run staticcheck on any generated file, it'll fail because of that.

This PR fixes the problem reported for: https://staticcheck.io/docs/checks#S1021

codecov[bot] commented 4 years ago

Codecov Report

Merging #5 into master will decrease coverage by 0.11%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #5      +/-   ##
==========================================
- Coverage   67.49%   67.37%   -0.12%     
==========================================
  Files           1        1              
  Lines         283      282       -1     
==========================================
- Hits          191      190       -1     
  Misses         73       73              
  Partials       19       19
Impacted Files Coverage Δ
main.go 67.37% <100%> (-0.12%) :arrow_down:

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 0cafeea...aa9bd83. Read the comment docs.

urandom commented 4 years ago

looks good, thanks