Inspectopedia Help

Unnecessary tuple wrapping

Reports usages of tuple types where they could be omitted.

Suggests replacing single-element tuples with types.

Example:

func foo() -> (Int) {}

After the quick-fix is applied:

func foo() -> Int {}

Inspection Details

Available in:

AppCode 2023.3

Plugin:

Swift Language Support, 233.SNAPSHOT

Last modified: 13 July 2023