[lbry] ci: fix linting (nakedret)
This commit is contained in:
parent
690954d843
commit
a4cc516896
2 changed files with 5 additions and 5 deletions
|
@ -69,7 +69,7 @@ func loadBlocks(filename string) (blocks []*btcutil.Block, err error) {
|
|||
|
||||
fi, err = os.Open(filename)
|
||||
if err != nil {
|
||||
return
|
||||
return blocks, err
|
||||
}
|
||||
|
||||
if strings.HasSuffix(filename, ".bz2") {
|
||||
|
@ -107,12 +107,12 @@ func loadBlocks(filename string) (blocks []*btcutil.Block, err error) {
|
|||
|
||||
block, err = btcutil.NewBlockFromBytes(rbytes)
|
||||
if err != nil {
|
||||
return
|
||||
return blocks, err
|
||||
}
|
||||
blocks = append(blocks, block)
|
||||
}
|
||||
|
||||
return
|
||||
return blocks, err
|
||||
}
|
||||
|
||||
// chainSetup is used to create a new db and chain instance with the genesis
|
||||
|
|
4
upnp.go
4
upnp.go
|
@ -136,7 +136,7 @@ func Discover() (nat NAT, err error) {
|
|||
return
|
||||
}
|
||||
err = errors.New("UPnP port discovery failed")
|
||||
return
|
||||
return nat, err
|
||||
}
|
||||
|
||||
// service represents the Service type in an UPnP xml description.
|
||||
|
@ -269,7 +269,7 @@ func getServiceURL(rootURL string) (url string, err error) {
|
|||
return
|
||||
}
|
||||
url = combineURL(rootURL, d.ControlURL)
|
||||
return
|
||||
return url, err
|
||||
}
|
||||
|
||||
// combineURL appends subURL onto rootURL.
|
||||
|
|
Loading…
Reference in a new issue