Remove Scala braces to adhere to the style guide
Scala if statements can have braces, but convention is not to use them except in specific situations; so let's not use them by default. Let's also add a space before the opening `(`, as this is also convention. Lastly, remove the useless placeholder text, as recommende in the project README. Everyone knows how an if statement works. :) http://www.codecommit.com/scala-style-guide.pdf
This commit is contained in:
parent
c34ee98d85
commit
faeacc8c27
@ -6,32 +6,27 @@
|
|||||||
# Scala lang
|
# Scala lang
|
||||||
#if
|
#if
|
||||||
snippet if
|
snippet if
|
||||||
if(${1:obj}) {
|
if (${1})
|
||||||
${0}
|
${0}
|
||||||
}
|
|
||||||
#if not
|
#if not
|
||||||
snippet ifn
|
snippet ifn
|
||||||
if(!${1:obj}) {
|
if (!${1})
|
||||||
${0}
|
${0}
|
||||||
}
|
|
||||||
#if-else
|
#if-else
|
||||||
snippet ife
|
snippet ife
|
||||||
if(${1:obj}) {
|
if (${1})
|
||||||
${2}
|
${2}
|
||||||
} else {
|
else
|
||||||
${0}
|
${0}
|
||||||
}
|
|
||||||
#if-else-if
|
#if-else-if
|
||||||
snippet ifelif
|
snippet ifelif
|
||||||
if(${1:obj}) {
|
if (${1})
|
||||||
${2}
|
${2}
|
||||||
} else if(${3:obj}) {
|
else if (${3})
|
||||||
${0}
|
${0}
|
||||||
}
|
|
||||||
snippet eif
|
snippet eif
|
||||||
else if(${3:obj}) {
|
else if (${3})
|
||||||
${0}
|
${0}
|
||||||
}
|
|
||||||
#while loop
|
#while loop
|
||||||
snippet wh
|
snippet wh
|
||||||
while (${1:obj}) {
|
while (${1:obj}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user