浏览代码

clear code

marinofaggiana 5 年之前
父节点
当前提交
16414bac48
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      iOSClient/Utility/NCUtility.swift

+ 1 - 1
iOSClient/Utility/NCUtility.swift

@@ -433,7 +433,7 @@ class NCUtility: NSObject {
     @objc func createAvatar(fileNameSource: String, fileNameSourceAvatar: String) -> UIImage? {
         
         guard let imageSource = UIImage(contentsOfFile: fileNameSource) else { return nil }
-        let size = Int(k_avatar_size) ?? 128
+        let size = Int(k_avatar_size)
         
         UIGraphicsBeginImageContextWithOptions(CGSize(width: size, height: size), false, 0)
         imageSource.draw(in: CGRect(x: 0, y: 0, width: size, height: size))