Formatter: introduce "Put left brace on new line option", support this option for "if/else" expressions
This commit is contained in:
@@ -8,13 +8,11 @@ import java.io.File
|
||||
public class Test() {
|
||||
class object {
|
||||
public fun isDir(parent: File): Boolean {
|
||||
if (parent == null || !parent.exists())
|
||||
{
|
||||
if (parent == null || !parent.exists()) {
|
||||
return false
|
||||
}
|
||||
val result = true
|
||||
if (parent.isDirectory())
|
||||
{
|
||||
if (parent.isDirectory()) {
|
||||
return true
|
||||
}
|
||||
else
|
||||
|
||||
@@ -8,13 +8,11 @@ import java.io.File
|
||||
public open class Test() {
|
||||
class object {
|
||||
public open fun isDir(parent: File?): Boolean {
|
||||
if (parent == null || !parent?.exists()!!)
|
||||
{
|
||||
if (parent == null || !parent?.exists()!!) {
|
||||
return false
|
||||
}
|
||||
var result: Boolean = true
|
||||
if (parent?.isDirectory()!!)
|
||||
{
|
||||
if (parent?.isDirectory()!!) {
|
||||
return true
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user