Simplify a code.

Signed-off-by: crynobone <crynobone@gmail.com>
v2.0.23 changelog

Signed-off-by: crynobone <crynobone@gmail.com>