fix: comma operator in ternary operator

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>