mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +00:00
go vet happy
This commit is contained in:
parent
460aa32b7e
commit
0dbe35a943
1
code.go
1
code.go
@ -251,7 +251,6 @@ func commentAnnotations(src string) []Annotation {
|
||||
annotations = append(annotations, Annotation{Kind: CommentAnnotation, Pos: int16(p), End: int16(e)})
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type sliceWriter struct{ p *[]byte }
|
||||
|
1
run.go
1
run.go
@ -119,7 +119,6 @@ func runApp(cmd *Command, args []string) int {
|
||||
runtime.Goexit()
|
||||
}
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func readAppDirectories(directory string, paths *[]string) {
|
||||
|
1
test.go
1
test.go
@ -73,7 +73,6 @@ func testApp(cmd *Command, args []string) int {
|
||||
runTest()
|
||||
}
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func runTest() {
|
||||
|
3
util.go
3
util.go
@ -152,7 +152,6 @@ func getColorLevel(level string) string {
|
||||
default:
|
||||
return level
|
||||
}
|
||||
return level
|
||||
}
|
||||
|
||||
// IsExist returns whether a file or directory exists.
|
||||
@ -252,7 +251,7 @@ func camelString(s string) string {
|
||||
type strFlags []string
|
||||
|
||||
func (s *strFlags) String() string {
|
||||
return fmt.Sprintf("%d", *s)
|
||||
return fmt.Sprintf("%s", *s)
|
||||
}
|
||||
|
||||
func (s *strFlags) Set(value string) error {
|
||||
|
Loading…
Reference in New Issue
Block a user