Browse Source

fix two swiftlint warnings (line-length-violation, trailing-semicolon-violation)

B. Petersen 4 years ago
parent
commit
a019b370c1

+ 2 - 1
deltachat-ios/Chat/Views/MediaPreview.swift

@@ -44,7 +44,8 @@ class MediaPreview: DraftPreview {
                 } else if let image = image {
                     self.setAspectRatio(image: image)
                     self.delegate?.onAttachmentAdded()
-                    self.accessibilityLabel = "\(String.localized("attachment")), \(draft.viewType == DC_MSG_GIF ? String.localized("gif") : String.localized("image"))"
+                    self.accessibilityLabel =
+                        "\(String.localized("attachment")), \(draft.viewType == DC_MSG_GIF ? String.localized("gif") : String.localized("image"))"
                 }
             })
             isHidden = false

+ 1 - 1
deltachat-ios/Controller/FullMessageViewController.swift

@@ -47,7 +47,7 @@ class FullMessageViewController: WebViewViewController {
         if title.isEmpty {
             title = String.localized("chat_input_placeholder")
         }
-        self.title = title;
+        self.title = title
 
         self.navigationItem.rightBarButtonItem = loadButton
     }