Skip to content

Commit

Permalink
fix: add explanation to weird filter func
Browse files Browse the repository at this point in the history
  • Loading branch information
Gusted committed May 25, 2021
1 parent 47f3391 commit 85143cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oauth_provider/oauth_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func OAuthSettingsGet(c *fiber.Ctx) error {
})
}

// Filtering an slice well "preserving" the type with the reflect package.
func filter(arr interface{}, cond func(interface{}) bool) interface{} {
contentType := reflect.TypeOf(arr)
contentValue := reflect.ValueOf(arr)
Expand Down

0 comments on commit 85143cd

Please sign in to comment.