mirror of
https://github.com/github/semantic.git
synced 2024-12-01 17:59:10 +03:00
/dev/null -> nil
`git difftool` will invoke us with /dev/null when a file has been deleted.
This commit is contained in:
parent
b3324a6c5f
commit
e152d8702a
@ -91,8 +91,7 @@ extension Fix where A: StringConvertible {
|
||||
|
||||
init?(path: String) {
|
||||
guard path != "/dev/null" else {
|
||||
self = .Empty
|
||||
return
|
||||
return nil
|
||||
}
|
||||
guard let term = File(path: path)
|
||||
.map(Structure.init)
|
||||
|
Loading…
Reference in New Issue
Block a user