mirror of
https://github.com/beego/bee.git
synced 2024-11-24 13:30:53 +00:00
Fix staticcheck failed - error strings should not be capitalized (ST1005)
This commit is contained in:
parent
d24c05d83e
commit
f2696160ae
@ -32,7 +32,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"unicode"
|
"unicode"
|
||||||
|
|
||||||
"gopkg.in/yaml.v2"
|
yaml "gopkg.in/yaml.v2"
|
||||||
|
|
||||||
"github.com/astaxie/beego/swagger"
|
"github.com/astaxie/beego/swagger"
|
||||||
"github.com/astaxie/beego/utils"
|
"github.com/astaxie/beego/utils"
|
||||||
@ -124,7 +124,7 @@ func ParsePackagesFromDir(dirpath string) {
|
|||||||
err = parsePackageFromDir(fpath)
|
err = parsePackageFromDir(fpath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Send the error to through the channel and continue walking
|
// Send the error to through the channel and continue walking
|
||||||
c <- fmt.Errorf("Error while parsing directory: %s", err.Error())
|
c <- fmt.Errorf("error while parsing directory: %s", err.Error())
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user