No need for an `else branch` as the `if` branch throws an exception. Also stop intermediate assignment to local variable and return the result directly instead. Change-Id: Ib442f72510302acffb0336e56df3efd6d93c4d83 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210609 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>