From ae7394f771777d563150aa0f43b61b000add0195 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Thu, 24 Feb 2022 22:57:29 -0800 Subject: [PATCH] Update Agent.swift (#359) --- Sources/Packages/Sources/SecretAgentKit/Agent.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Packages/Sources/SecretAgentKit/Agent.swift b/Sources/Packages/Sources/SecretAgentKit/Agent.swift index 15c3545..89621ef 100644 --- a/Sources/Packages/Sources/SecretAgentKit/Agent.swift +++ b/Sources/Packages/Sources/SecretAgentKit/Agent.swift @@ -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}