fix clang warning 'add explicit braces to avoid dangling'