From 058c5e6b1557bade7ca7375bb4987d64cade0e38 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 27 Oct 2026 11:16:37 +0100 Subject: [PATCH] devices: reformat switch Wrap the cases, so that the corresponding comments can be put next to the item they relate to. updates 6b651fb25c1cc4ee8b29426b8a3ffbe0b3b549cd Signed-off-by: Sebastiaan van Stijn --- devices/device_unix.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/devices/device_unix.go b/devices/device_unix.go index 58c5c9a..f9bdf5e 100644 --- a/devices/device_unix.go +++ b/devices/device_unix.go @@ -98,10 +98,10 @@ func GetDevices(path string) ([]*config.Device, error) { switch { case f.IsDir(): switch f.Name() { - // ".lxc" & ".lxd-mounts" added to address https://github.com/lxc/lxd/issues/2825 - // ".udev" added to address https://github.com/opencontainers/runc/issues/2093 - // ".incus-mounts" added to address https://github.com/moby/sys/issues/260 - case "pts", "shm", "fd", "mqueue", ".lxc", ".lxd-mounts", ".udev", ".incus-mounts": + case "pts", "shm", "fd", "mqueue", + ".lxc", ".lxd-mounts", // https://github.com/lxc/lxd/issues/2825 + ".udev", // https://github.com/opencontainers/runc/issues/2093 + ".incus-mounts": // https://github.com/moby/sys/issues/260 continue default: sub, err := GetDevices(filepath.Join(path, f.Name()))