Sources/App/RouteHandlers/APIRouteHandlers.swift
Function createTemplate
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private func createTemplate(ignoreString: String) -> (template: String, status: HTTPResponseStatus) {
guard let urlDecoded = ignoreString.removingPercentEncoding else {
return ("""
#!! ERROR: url decoding \(ignoreString) !#
Avoid too many return
statements within this function. Open
Open
return (template: template, status: createStatus)