core: omit redundant brackets in case blocks