-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: update golangci-lint #1586
ci: update golangci-lint #1586
Conversation
Signed-off-by: Mikko Ylinen <[email protected]>
Signed-off-by: Mikko Ylinen <[email protected]>
Signed-off-by: Mikko Ylinen <[email protected]>
Signed-off-by: Mikko Ylinen <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #1586 +/- ##
=======================================
Coverage 49.50% 49.50%
=======================================
Files 42 42
Lines 4965 4965
=======================================
Hits 2458 2458
Misses 2363 2363
Partials 144 144
📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes logging bug and looks fine otherwise.
@@ -47,9 +45,9 @@ func GetFPGABitstream(bitstreamDir, region, afu string) (File, error) { | |||
// Open bitstream file, detecting type based on the filename extension. | |||
func Open(fname string) (File, error) { | |||
switch filepath.Ext(fname) { | |||
case ".gbs": | |||
case fileExtensionGBS: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO code would be clearer if this Open()
function would be inlined into GetFPGABitstream()
loop. That way one could more easily see that loop handles all cases that it ranges through.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me but it could be handled in another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.