Fixes #5700: Fixes rubocop error introduced by PR 4070.