Skip to content

Commit

Permalink
Fix Swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed Jun 29, 2024
1 parent 95693b2 commit 163d1f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/danger.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Danger

on:
push:
pull_request:
branches:
- main
Expand Down
2 changes: 1 addition & 1 deletion Source/API/PDFGenerator+Generation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ public extension PDFGenerator {
elements.append((styleIndex, textObj))
}
}
let list = PDFList(indentations: styles.enumerated().map { (pre: CGFloat($0.offset + 1) * 10, past: 10) })
let list = PDFList(indentations: styles.indices.map { (pre: CGFloat($0 + 1) * 10, past: 10) })
var stack = Stack<PDFListItem>()
for (index, element) in elements {
let item = PDFListItem(symbol: symbol, content: element.simpleText?.text)
Expand Down
3 changes: 2 additions & 1 deletion Source/API/Pagination/PDFPaginationStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import Foundation
/**
* Use predefined pagination styles or create a custom one, using `.CustomNumberFormat` or `.CustomClosure`.
*
* Enums using a template String as parameter will replace the first instance of `%@` with the index and the second one with the total amount of pages.
* Enums using a template String as parameter will replace the first instance of `%@` with the index
* and the second one with the total amount of pages.
*/
public enum PDFPaginationStyle {
/**
Expand Down

0 comments on commit 163d1f9

Please sign in to comment.