Преглед изворни кода

Fix warning for swift lint

onevcat пре 10 година
родитељ
комит
29bf8838ac
2 измењених фајлова са 5 додато и 5 уклоњено
  1. 4 4
      Sources/String+MD5.swift
  2. 1 1
      Tests/KingfisherTests/KingfisherTestHelper.swift

+ 4 - 4
Sources/String+MD5.swift

@@ -163,10 +163,10 @@ class MD5: HashProtocol {
     }
     
     /** specifies the per-round shift amounts */
-    private let shifts: [UInt32] = [7, 12, 17, 22,  7, 12, 17, 22,  7, 12, 17, 22,  7, 12, 17, 22,
-        5,  9, 14, 20,  5,  9, 14, 20,  5,  9, 14, 20,  5,  9, 14, 20,
-        4, 11, 16, 23,  4, 11, 16, 23,  4, 11, 16, 23,  4, 11, 16, 23,
-        6, 10, 15, 21,  6, 10, 15, 21,  6, 10, 15, 21,  6, 10, 15, 21]
+    private let shifts: [UInt32] = [7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22,
+                                    5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20,
+                                    4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23,
+                                    6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]
     
     /** binary integer part of the sines of integers (Radians) */
     private let sines: [UInt32] = [0xd76aa478, 0xe8c7b756, 0x242070db, 0xc1bdceee,

+ 1 - 1
Tests/KingfisherTests/KingfisherTestHelper.swift

@@ -40,7 +40,7 @@ let testImageJEPGData = ImageJPEGRepresentation(testImage, 1.0)!
 let testImageGIFData = NSData(contentsOfFile: NSBundle(forClass: ImageExtensionTests.self).pathForResource("dancing-banana", ofType: "gif")!)!
 let testImageSingleFrameGIFData = NSData(contentsOfFile: NSBundle(forClass: ImageExtensionTests.self).pathForResource("single-frame", ofType: "gif")!)!
 
-let testKeys = ["http://stackoverflow.com/questions/11251340/convert-image-to-base64-string-in-ios-swift","https://onevcat.com","http://onevcat.com/content/images/2014/May/200.jpg","http://onevcat.com/content/images/2014/May/200.jpg?fads#kj1asf"]
+let testKeys = ["http://stackoverflow.com/questions/11251340/convert-image-to-base64-string-in-ios-swift", "https://onevcat.com", "http://onevcat.com/content/images/2014/May/200.jpg", "http://onevcat.com/content/images/2014/May/200.jpg?fads#kj1asf"]
 
 func == (left: Image, right: Image) -> Bool {
     return ImagePNGRepresentation(left) == ImagePNGRepresentation(right)