Mercurial > gemma
comparison pkg/misc/tmpfiles.go @ 2502:e13daf439068 critical-bottlenecks
client: fixed Unexpected side effect in computed property
Sort mutates the array and since this array lives in the store, this would be considered a bad practice
including said side effects. Slice clones the array and we need to slice the array anyway. So simply
switching slice and sort solved the problem.
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Mon, 04 Mar 2019 16:20:57 +0100 |
parents | 5b9b8eabcd01 |
children | 5f47eeea988d |
comparison
equal
deleted
inserted
replaced
2501:9d9c6425db82 | 2502:e13daf439068 |
---|