minor code formatting

This commit is contained in:
Rasmus Andersson 2020-10-15 13:37:41 -07:00
parent 352fd5008b
commit dc0823ce38

View file

@ -152,7 +152,7 @@ static size_t WBufAppendSlug(WBuf* b, const char* pch, size_t len) {
} }
} }
c = slugMap[x]; c = slugMap[x];
if (c != '-' || pc != '-' && pc) { if (c != '-' || (pc != '-' && pc)) {
// note: check "pc" to trim leading '-' // note: check "pc" to trim leading '-'
*(b->ptr++) = c; *(b->ptr++) = c;
pc = c; pc = c;