# HG changeset patch # User Matti Hamalainen # Date 1509239305 -7200 # Node ID 77d6e13fb95e37cd7a6cac7c672d6a6cbdd5987c # Parent 78dcae610ce33beac50ca8b21ec754e263a5929c Simplify few lines of code. diff -r 78dcae610ce3 -r 77d6e13fb95e mkloc.c --- 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");