From dd09a4b0ecd79dff324c297f22ac9a85a016c235 Mon Sep 17 00:00:00 2001 From: Marius Meisenzahl Date: Thu, 9 Nov 2023 21:08:46 +0100 Subject: [PATCH] Refactor file common/DBusStructures.vala to handle FileSystem.NONE case in a default statement. --- common/DBusStructures.vala | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/common/DBusStructures.vala b/common/DBusStructures.vala index 7f83735dc..8a5ec8b18 100644 --- a/common/DBusStructures.vala +++ b/common/DBusStructures.vala @@ -62,8 +62,6 @@ public enum InstallerDaemon.FileSystem { return "fat16"; case FAT32: return "fat32"; - case NONE: - return "none"; case NTFS: return "ntfs"; case SWAP: @@ -74,9 +72,10 @@ public enum InstallerDaemon.FileSystem { return "lvm"; case LUKS: return "luks"; + case NONE: + default: + return "none"; } - - return "none"; } }