Mercurial > gemma
changeset 4539:99928231b679 iso-areas
Code simplification.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 26 Sep 2019 10:59:17 +0200 |
parents | 46c9a731a686 |
children | e01b6e7cbe7d |
files | cmd/isoareas/main.go |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/cmd/isoareas/main.go Thu Sep 26 10:58:22 2019 +0200 +++ b/cmd/isoareas/main.go Thu Sep 26 10:59:17 2019 +0200 @@ -183,10 +183,7 @@ func inner(t *octree.Triangulation, idx int32, indices []int32) bool { for _, n := range neighbors(t, idx) { - if n < 0 { - return false - } - if !contains(n/3, indices) { + if n < 0 || !contains(n/3, indices) { return false } }