You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2020/01/28 12:59:01 UTC
[GitHub] [mynewt-newt] utzig commented on a change in pull request #373: Fix
some issues reported by Coverity
utzig commented on a change in pull request #373: Fix some issues reported by Coverity
URL: https://github.com/apache/mynewt-newt/pull/373#discussion_r371786203
##########
File path: newt/toolchain/compiler.go
##########
@@ -1374,7 +1373,7 @@ func (c *Compiler) CopySymbols(infile string, outfile string, sm *symbol.SymbolM
if err != nil {
return err
}
- return err
+ return nil
Review comment:
I don't understand this issue and the one above it, if `err` is being tested for non-`nil` value above could it be anything different than `nil` in the `return`? (Non related to the question, I guess the test above could be removed for this one). The other changes in this PR look good.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services