diff options
| author | Christian Cleberg <[email protected]> | 2026-04-13 20:32:40 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-13 20:32:40 -0500 |
| commit | d6968ea122d910b432bd539cf2fa3d1cee962fdb (patch) | |
| tree | b5fe9a85880d2a153a2a9d4ee8f1ab2156f64d25 /Hutch/Views/Pastes | |
| parent | 312e535f400f31714b3750de5222a1f6a8e5bcda (diff) | |
| download | hutch-d6968ea122d910b432bd539cf2fa3d1cee962fdb.tar.gz hutch-d6968ea122d910b432bd539cf2fa3d1cee962fdb.tar.bz2 hutch-d6968ea122d910b432bd539cf2fa3d1cee962fdb.zip | |
fix: more sonarqube quality fixesv3.1.5
Diffstat (limited to 'Hutch/Views/Pastes')
| -rw-r--r-- | Hutch/Views/Pastes/PasteListView.swift | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Hutch/Views/Pastes/PasteListView.swift b/Hutch/Views/Pastes/PasteListView.swift index 17bb8ac..b325153 100644 --- a/Hutch/Views/Pastes/PasteListView.swift +++ b/Hutch/Views/Pastes/PasteListView.swift @@ -276,14 +276,14 @@ private struct CreatePasteSheet: View { NavigationStack { Form { Section("Files") { - ForEach($files) { $file in + ForEach($files) { fileBinding in VStack(alignment: .leading, spacing: 8) { - TextField("Filename (optional)", text: $file.filename) + TextField("Filename (optional)", text: fileBinding.filename) .autocorrectionDisabled() .textInputAutocapitalization(.never) ZStack(alignment: .topLeading) { - if file.contents.isEmpty { + if fileBinding.wrappedValue.contents.isEmpty { Text("Paste contents") .foregroundStyle(.tertiary) .padding(.top, 8) @@ -291,7 +291,7 @@ private struct CreatePasteSheet: View { .allowsHitTesting(false) } - TextEditor(text: $file.contents) + TextEditor(text: fileBinding.contents) .font(.system(.body, design: .monospaced)) .frame(minHeight: 180) } |
