1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 11:02:26 +03:00

/dev/null -> nil

`git difftool` will invoke us with /dev/null when a file has been
deleted.
This commit is contained in:
Rob Rix 2015-10-06 20:48:53 -04:00
parent b3324a6c5f
commit e152d8702a

View File

@ -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)