Conversation
redhatrises
commented
Jun 11, 2018
- Fixes Support 'export' option #267
40c4ab3 to
4039564
Compare
Codecov Report
@@ Coverage Diff @@
## master #292 +/- ##
==========================================
- Coverage 86.75% 79.51% -7.25%
==========================================
Files 32 38 +6
Lines 1012 1411 +399
==========================================
+ Hits 878 1122 +244
- Misses 116 239 +123
- Partials 18 50 +32
Continue to review full report at Codecov.
|
4039564 to
9181641
Compare
|
@redhatrises #291 forced a rebase of this |
- Fixes opencontrol#267
9181641 to
e937da2
Compare
| } | ||
| buffer.WriteString(string(bytesJSON)) | ||
|
|
||
| // iterate over components |
There was a problem hiding this comment.
components and standard iterations are very similar. Could this be condensed into a for each loop?
e.g.
arrayOpenControl := [2]string{"components", "standards"}
for index,element := range arrayOpenControl{
if len(p.element) > 0 {
.... do stuff
}
}
}
There was a problem hiding this comment.
@shawndwells this actually would probably be a separate function as it deals with more than just strings.
I was hoping to avoid code cleanup in these type of PRs because of how big they are.
There was a problem hiding this comment.
Sounds good. Thanks for opening the ticket to track.