mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-11-08 03:35:59 +01:00
Update Agent.swift (#359)
This commit is contained in:
1 parent
6ea0a3ebd2
commit
ae7394f771
1 file changed
+1
-1
@@ -32,7 +32,7 @@ extension Agent {
|
||||
/// - writer: A ``FileHandleWriter`` to write the response to.
|
||||
/// - Return value:
|
||||
/// - Boolean if data could be read
|
||||
public func handle(reader: FileHandleReader, writer: FileHandleWriter) -> Bool {
|
||||
@discardableResult public func handle(reader: FileHandleReader, writer: FileHandleWriter) -> Bool {
|
||||
Logger().debug("Agent handling new data")
|
||||
let data = Data(reader.availableData)
|
||||
guard data.count > 4 else { return false}
|
||||
|
||||
Reference in new issue
Block a user