Skip to content

Commit

Permalink
Fix linter warning about body length
Browse files Browse the repository at this point in the history
  • Loading branch information
yvbeek committed Mar 24, 2024
1 parent 9ad06ec commit ec06df5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sources/Protocols/WebSockets/Models/WebSocketParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ import Foundation
// +---------------------------------------------------------------+
//

// swiftlint:disable function_body_length

public protocol WebSocketParserDelegate: AnyObject {
func parser(_ parser: WebSocketParser, didCompleteMessage message: WebSocketMessage)
}
Expand Down Expand Up @@ -62,6 +60,8 @@ public class WebSocketParser {
self.maxPayloadLength = UInt64(maxPayloadLength)
}

// swiftlint:disable function_body_length

/// Parses the incoming data into a websocket message.
public func parse(data: Data) throws {
let stream = DataStream(data: data)
Expand Down Expand Up @@ -171,6 +171,8 @@ public class WebSocketParser {
}
}

// swiftlint:enable function_body_length

/// Resets the parser.
public func reset() {
message = WebSocketMessage()
Expand Down

0 comments on commit ec06df5

Please sign in to comment.