[pacman-dev] [PATCH 2/2] Change if-else chain to switch