1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-06 11:37:06 +00:00

fixed code quality issues using DeepSource

* Combine multiple `append`s into a single call

* Remove unnecessary use of slice

* Replace `strings.Index` with `strings.Contains`

* Added .deepsource.toml config file for DeepSource integration
This commit is contained in:
Shubhendra Singh Chauhan
2020-12-22 09:49:40 +00:00
committed by shubhendra
parent 551462b3c8
commit 8ab500bd6c
4 changed files with 21 additions and 5 deletions

View File

@@ -210,7 +210,7 @@ func (g *Group) Error() (s string) {
}
func (g *Group) getAllErrors() []error {
list := g.Errors[:]
list := g.Errors
if len(g.children) > 0 {
// return with order of definition.