chore: starting a coding convention
This commit is contained in:
parent
d6cbf738a1
commit
90cc87eb23
1 changed files with 13 additions and 0 deletions
13
doc/coding_conventions.md
Normal file
13
doc/coding_conventions.md
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# early returns
|
||||||
|
|
||||||
|
## in controllers
|
||||||
|
|
||||||
|
good
|
||||||
|
|
||||||
|
```
|
||||||
|
... code
|
||||||
|
|
||||||
|
return if !DossierSearchService.id_compatible?(@search_terms)
|
||||||
|
|
||||||
|
... more code
|
||||||
|
```
|
Loading…
Reference in a new issue