no pointless using of the comma operator

This commit is contained in:
Mikael Magnusson 2007-05-29 00:14:56 +00:00
parent e215fc0110
commit 39d94f0db0

View file

@ -346,9 +346,10 @@ static ObClient *focus_find_directional(ObClient *c, ObDirection dir,
if (offset > distance)
score += 1000000;
if (best_score == -1 || score < best_score)
best_client = cur,
best_score = score;
if (best_score == -1 || score < best_score) {
best_client = cur;
best_score = score;
}
}
return best_client;