Skip to content

Fix linter issues

Ian requested to merge fix_linter into develop

Context

Fix a couple of linter issue to make builds green again

Change

Swapped order of args as recommended by golangci-lint:

elastic_search.go:814:1: context.Context should be the first parameter of a function (golint)
func createWorldResults(user *users.User, ctx context.Context, tx *gorm.DB, elasticResult map[string]interface{}) (interface{}, int64) {
^
elastic_search.go:856:1: context.Context should be the first parameter of a function (golint)
func createModelResults(user *users.User, ctx context.Context, tx *gorm.DB, elasticResult map[string]interface{}) (interface{}, int64) {
Edited by Ian

Merge request reports