From 56598f9fa1dca18c9bb50e11a1317d0a6086ae4a Mon Sep 17 00:00:00 2001 From: Nindi Gill Date: Sun, 19 Nov 2023 19:41:12 +1100 Subject: [PATCH] SwiftFormat spaceAroundOperators --- Mist/Extensions/Array+Extension.swift | 4 ++-- Mist/Model/Chunklist.swift | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Mist/Extensions/Array+Extension.swift b/Mist/Extensions/Array+Extension.swift index c62895f..1dc93c7 100644 --- a/Mist/Extensions/Array+Extension.swift +++ b/Mist/Extensions/Array+Extension.swift @@ -11,13 +11,13 @@ extension Array { } func uInt32(at offset: Int) -> UInt32 { - self[offset...offset + 0x03].reversed().reduce(0) { + self[offset ... offset + 0x03].reversed().reduce(0) { $0 << 0x08 + UInt32($1) } } func uInt64(at offset: Int) -> UInt64 { - self[offset...offset + 0x07].reversed().reduce(0) { + self[offset ... offset + 0x07].reversed().reduce(0) { $0 << 0x08 + UInt64($1) } } diff --git a/Mist/Model/Chunklist.swift b/Mist/Model/Chunklist.swift index 8dc9af9..568320f 100644 --- a/Mist/Model/Chunklist.swift +++ b/Mist/Model/Chunklist.swift @@ -71,7 +71,7 @@ struct Chunklist { totalChunks = array.uInt64(at: 0x0C) chunksOffset = array.uInt64(at: 0x14) signatureOffset = array.uInt64(at: 0x1C) - chunks = Chunklist.chunks(Array(array[Int(chunksOffset).. [Chunk] { var chunks: [Chunk] = [] - for offset in 0..