Skip to content

Commit

Permalink
chore: code formating adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
bouassaba committed Nov 24, 2024
1 parent d70109b commit bf26664
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
12 changes: 5 additions & 7 deletions Sources/File.swift
Original file line number Diff line number Diff line change
Expand Up @@ -552,25 +552,23 @@ public struct VOFile {
}

public func urlForOriginal(_ id: String, fileExtension: String) -> URL {
URL(string: "\(urlForID(id))/original.\(fileExtension)?" + "access_token=\(accessToken)")!
URL(string: "\(urlForID(id))/original.\(fileExtension)?access_token=\(accessToken)")!
}

public func urlForPreview(_ id: String, fileExtension: String) -> URL {
URL(string: "\(urlForID(id))/preview.\(fileExtension)?" + "access_token=\(accessToken)")!
URL(string: "\(urlForID(id))/preview.\(fileExtension)?access_token=\(accessToken)")!
}

public func urlForThumbnail(_ id: String, fileExtension: String) -> URL {
URL(string: "\(urlForID(id))/thumbnail.\(fileExtension)?" + "access_token=\(accessToken)")!
URL(string: "\(urlForID(id))/thumbnail.\(fileExtension)?access_token=\(accessToken)")!
}

public func urlForSegmentedPage(_ id: String, page: Int, fileExtension: String) -> URL {
URL(string: "\(urlForID(id))/segmentation/pages/\(page).\(fileExtension)?" + "access_token=\(accessToken)")!
URL(string: "\(urlForID(id))/segmentation/pages/\(page).\(fileExtension)?access_token=\(accessToken)")!
}

public func urlForSegmentedThumbnail(_ id: String, page: Int, fileExtension: String) -> URL {
// swift-format-ignore
// swiftlint:disable:next line_length
URL(string: "\(urlForID(id))/segmentation/thumbnails/\(page).\(fileExtension)?" + "access_token=\(accessToken)")!
URL(string: "\(urlForID(id))/segmentation/thumbnails/\(page).\(fileExtension)?access_token=\(accessToken)")!
}

public func urlForUserPermissions(_ id: String) -> URL {
Expand Down
6 changes: 3 additions & 3 deletions Sources/Mosaic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ public struct VOMosaic {
column: Int,
fileExtension: String
) -> URL {
URL(
string: "\(urlForFile(id))/zoom_level/\(zoomLevel.index)"
+ "/row/\(row)/column/\(column)/extension/\(fileExtension)?" + "access_token=\(accessToken)")!
// swift-format-ignore
// swiftlint:disable:next line_length
URL(string: "\(urlForFile(id))/zoom_level/\(zoomLevel.index)/row/\(row)/column/\(column)/extension/\(fileExtension)?access_token=\(accessToken)")!
}

// MARK: - Types
Expand Down

0 comments on commit bf26664

Please sign in to comment.