[lbry] ci: fix linting (nakedret)

This commit is contained in:
Roy Lee 2021-09-13 16:55:40 -07:00
parent 690954d843
commit a4cc516896
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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.