Mercurial > hg > batmud > maputils
changeset 1782:77d6e13fb95e
Simplify few lines of code.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 29 Oct 2017 03:08:25 +0200 |
parents | 78dcae610ce3 |
children | fe17380576ac |
files | mkloc.c |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/mkloc.c Sun Oct 29 03:07:46 2017 +0200 +++ b/mkloc.c Sun Oct 29 03:08:25 2017 +0200 @@ -1061,13 +1061,8 @@ fprintf(outFile, "\""); } - // Type of the marker - fprintf(outFile, "}"); - - if (i < l->n - 1) - fprintf(outFile, ","); - - fprintf(outFile, "\n"); + fprintf(outFile, "}%s\n", + (i < l->n - 1) ? "," : ""); } fprintf(outFile, "]\n");