Skip to content

Commit

Permalink
Replace assert(false) with fatalError()
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrubin committed Apr 13, 2019
1 parent 00e23d3 commit 18c4cd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SwiftGit2/CommitIterator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ public class CommitIterator: IteratorProtocol, Sequence {
}
}

private func notImplemented(functionName: Any) {
assert(false, "CommitIterator does not implement \(functionName)")
private func notImplemented(functionName: Any, file: StaticString = #file, line: UInt = #line) {
fatalError("CommitIterator does not implement \(functionName)", file: file, line: line)
}
private init(repo: Repository) {
self.repo = repo
Expand Down

0 comments on commit 18c4cd8

Please sign in to comment.