mirror of
https://github.com/wnagrodzki/iOSProgrammingGuidelines.git
synced 2025-05-03 17:41:33 +02:00
Added "Place noop comment in functions left empty by intention" section
This commit is contained in:
parent
11146a538c
commit
0fa27e8c9b
1 changed files with 9 additions and 0 deletions
|
@ -26,3 +26,12 @@ guard let value = optionalValue else { fatalError("reason why value must be pres
|
|||
```
|
||||
|
||||
> This is to avoid situations in which reason for force unwrapping is undocumented.
|
||||
|
||||
### Place noop comment in functions left empty by intention
|
||||
|
||||
```swift
|
||||
func didDeliver(parcel: Parcel) {
|
||||
// noop
|
||||
}
|
||||
```
|
||||
> This is to make clear function is empty by intention and not by mistake
|
||||
|
|
Loading…
Add table
Reference in a new issue