diff options
| author | Fuwn <[email protected]> | 2026-02-18 10:46:38 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-18 10:46:38 -0800 |
| commit | cd62bb58e1f32ddcccaac081dd9aec12c3edc398 (patch) | |
| tree | c7006dd094ed83fa84bafe48128129f016eccc89 /Sora/Data/JSONFileDocument.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-cd62bb58e1f32ddcccaac081dd9aec12c3edc398.tar.xz sora-testing-cd62bb58e1f32ddcccaac081dd9aec12c3edc398.zip | |
Fix SwiftLint violations
Diffstat (limited to 'Sora/Data/JSONFileDocument.swift')
| -rw-r--r-- | Sora/Data/JSONFileDocument.swift | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Sora/Data/JSONFileDocument.swift b/Sora/Data/JSONFileDocument.swift index bc41616..5081fe3 100644 --- a/Sora/Data/JSONFileDocument.swift +++ b/Sora/Data/JSONFileDocument.swift @@ -6,7 +6,7 @@ struct JSONFileDocument: FileDocument { var data: Data - init(_ data: Data) throws { + init(_ data: Data) { self.data = data } @@ -18,9 +18,7 @@ struct JSONFileDocument: FileDocument { self.data = data } - func fileWrapper( - configuration: WriteConfiguration // swiftlint:disable:this unused_parameter - ) throws -> FileWrapper { + func fileWrapper(configuration _: WriteConfiguration) -> FileWrapper { FileWrapper(regularFileWithContents: data) } } |