Update linux-tests; fail if warnings on travis

* Update linux-tests; fail if warnings on travis

* Fix warnings on Linux

* Typo

* Can’t test these on Linux
This commit is contained in:
Max Howell
2019-08-18 16:52:24 -04:00
committed by GitHub
parent 0ef50dff2e
commit 30122659a5
5 changed files with 21 additions and 13 deletions

View File

@@ -30,7 +30,7 @@ public extension Pathish {
try FileManager.default.removeItem(at: to.url)
}
#if os(Linux) && !swift(>=5.2) // check if fixed
if !overwrite, to.kind != nil {
if !overwrite, to.type != nil {
throw CocoaError.error(.fileWriteFileExists)
}
#endif
@@ -70,7 +70,7 @@ public extension Pathish {
try FileManager.default.removeItem(at: rv.url)
}
#if os(Linux) && !swift(>=5.2) // check if fixed
if !overwrite, rv.kind != nil {
if !overwrite, rv.type != nil {
throw CocoaError.error(.fileWriteFileExists)
}
#endif