From 01b589dd567e1b026f01db599019d1ab5b43d80e Mon Sep 17 00:00:00 2001 From: akwizgran Date: Sat, 2 Jun 2018 16:15:14 +0000 Subject: [PATCH] Update code style --- code-style.md | 1 + 1 file changed, 1 insertion(+) diff --git a/code-style.md b/code-style.md index 27a30c8..0a33d76 100644 --- a/code-style.md +++ b/code-style.md @@ -2,6 +2,7 @@ * Egyptian brackets * Tabs for indentation, tab width of 4 * `if/else/for/while` may omit brackets if the body fits on a single line +* If the `if` uses brackets, the `else` should too (and vice versa) * `else/catch/finally` continue the same line as the preceding bracket * Use `foo` rather than `mFoo`, `_foo`, etc for field names * Use `foo` rather than `this.foo` unless there's also a local `foo`