Skip to content

Commit

Permalink
Removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
João Silva committed Feb 16, 2018
1 parent 527e4da commit f94fdd1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ func ExtractMultipleObjectsFields(object interface{}, userType string, action ui
reflectValue.Kind() != reflect.Array {
return reflectValue.Interface()
}
// Multiple objects of builtin types, then no need to iterate
/*if reflect.TypeOf(reflectValue.Interface()).Elem().Kind() != reflect.Struct {
return reflectValue.Interface()
}*/

// Iterate through each single object in the slice
resultObjects := make([]interface{}, reflectValue.Len())
Expand Down

0 comments on commit f94fdd1

Please sign in to comment.