From 312e535f400f31714b3750de5222a1f6a8e5bcda Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Mon, 13 Apr 2026 20:07:53 -0500 Subject: fix: sonarqube code smell fixes --- Hutch/Views/Pastes/PasteListViewModel.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Hutch/Views/Pastes/PasteListViewModel.swift') diff --git a/Hutch/Views/Pastes/PasteListViewModel.swift b/Hutch/Views/Pastes/PasteListViewModel.swift index 75f2f4b..640e31b 100644 --- a/Hutch/Views/Pastes/PasteListViewModel.swift +++ b/Hutch/Views/Pastes/PasteListViewModel.swift @@ -131,12 +131,12 @@ final class PasteListViewModel { func cycleVisibility(for paste: Paste) async { let next: Visibility switch paste.visibility { - case .public: + case .publicVisibility: next = .unlisted case .unlisted: - next = .private - case .private: - next = .public + next = .privateVisibility + case .privateVisibility: + next = .publicVisibility } let original = pastes -- cgit v1.2.3