Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mjoerke committed Feb 27, 2024
1 parent 5e07525 commit b549eed
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Prisma/Standard/PrismaStandard+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ extension String {
}

let prefixes = ["HKQuantityTypeIdentifier", "HKCategoryTypeIdentifier", "HKCorrelationTypeIdentifier", "HKWorkoutTypeIdentifier"]
for prefix in prefixes {
if self.hasPrefix(prefix) {
return self.dropFirst(prefix.count).lowercased()
}
for prefix in prefixes where self.hasPrefix(prefix) {
return self.dropFirst(prefix.count).lowercased()

Check warning on line 22 in Prisma/Standard/PrismaStandard+Extension.swift

View check run for this annotation

Codecov / codecov/patch

Prisma/Standard/PrismaStandard+Extension.swift#L16-L22

Added lines #L16 - L22 were not covered by tests
}
return "unknown"
}
Expand Down

0 comments on commit b549eed

Please sign in to comment.