Skip to content

Commit

Permalink
@discardableResult from RouterMethods.group functions
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Oct 25, 2024
1 parent 2f8c590 commit 756d093
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Hummingbird/Router/RouterMethods.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ extension RouterMethods {

/// Return a group inside the current group
/// - Parameter path: path prefix to add to routes inside this group
@discardableResult public func group(_ path: RouterPath = "") -> RouterGroup<Context> {
public func group(_ path: RouterPath = "") -> RouterGroup<Context> {
return RouterGroup(
path: path,
parent: self
Expand All @@ -73,7 +73,7 @@ extension RouterMethods {
/// - Parameters
/// - path: path prefix to add to routes inside this group
/// - convertContext: Function converting context
@discardableResult public func group<TargetContext>(
public func group<TargetContext>(
_ path: RouterPath = "",
context: TargetContext.Type
) -> RouterGroup<TargetContext> where TargetContext.Source == Context {
Expand All @@ -99,7 +99,7 @@ extension RouterMethods {
/// - Parameters
/// - path: path prefix to add to routes inside this group
/// - convertContext: Function converting context
@discardableResult public func group<TargetContext: ChildRequestContext>(
public func group<TargetContext: ChildRequestContext>(
_ path: RouterPath = "",
context: TargetContext.Type
) -> RouterGroup<TargetContext> where TargetContext.ParentContext == Context {
Expand Down

0 comments on commit 756d093

Please sign in to comment.