mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
SwiftLint fixes. (#2899)
non_optional_string_data_conversion and static_over_final_class * Revert Data -> String changes for upcoming rule change.
This commit is contained in:
@@ -294,12 +294,7 @@ class LoggingTests: XCTestCase {
|
||||
let currentLogFile = logsFileDirectory.appending(path: "console.1.log")
|
||||
let fileHandle = try FileHandle(forWritingTo: currentLogFile)
|
||||
try fileHandle.seekToEnd()
|
||||
guard let newLineData = "newline".data(using: .utf8) else {
|
||||
XCTFail("Couldn't create data to write to disk.")
|
||||
return
|
||||
}
|
||||
|
||||
try fileHandle.write(contentsOf: newLineData)
|
||||
try fileHandle.write(contentsOf: Data("newline".utf8))
|
||||
try fileHandle.close()
|
||||
|
||||
// Then that file should now be the first log file.
|
||||
|
||||
Reference in New Issue
Block a user