Fix code style

This commit is contained in:
Naoki Takezoe
2014-06-02 16:10:03 +09:00
parent 6d6f529d40
commit 1edff41690

View File

@@ -43,8 +43,7 @@ trait SystemSettingsService {
ldap.keystore.foreach(x => props.setProperty(LdapKeystore, x)) ldap.keystore.foreach(x => props.setProperty(LdapKeystore, x))
} }
} }
using(new java.io.FileOutputStream(GitBucketConf)) { using(new java.io.FileOutputStream(GitBucketConf)){ out =>
out =>
props.store(out, null) props.store(out, null)
} }
} }
@@ -54,8 +53,7 @@ trait SystemSettingsService {
def loadSystemSettings(): SystemSettings = { def loadSystemSettings(): SystemSettings = {
defining(new java.util.Properties()){ props => defining(new java.util.Properties()){ props =>
if(GitBucketConf.exists){ if(GitBucketConf.exists){
using(new java.io.FileInputStream(GitBucketConf)) { using(new java.io.FileInputStream(GitBucketConf)){ in =>
in =>
props.load(in) props.load(in)
} }
} }