Skip to content

Remove backticks (`) from "protocol" and rename it. #310

@ambrusha

Description

@ambrusha

New Issue Checklist

Issue Description

Remove backticks (`) from "protocol" and rename it.

func urlSession(
        _ session: URLSession,
        webSocketTask: URLSessionWebSocketTask,
        didOpenWithProtocol protocol: String?
    ) {
        if let sessionDelegate = self.sessionDelegate as? URLSessionWebSocketDelegate {
            sessionDelegate.urlSession?(
                session,
                webSocketTask: webSocketTask,
                didOpenWithProtocol: `protocol`
            )
        }
    }

As you can see I don't use any custom names... just passing property from one func to another. But CI's Sonar gives me an error.

Environment

 Enterprise EditionVersion 10.3 (build 82913) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions