Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Statements compaction

  • Loading branch information...
commit 5a4e455c2cda4d57c175efbc2c74e493323c188f 1 parent 932b6f2
@slothspot authored
Showing with 2 additions and 10 deletions.
  1. +2 −10 src/name/dmitrym/datasync/Datasync.scala
View
12 src/name/dmitrym/datasync/Datasync.scala
@@ -115,17 +115,9 @@ object Datasync {
version()
} else {
var idx = args.indexOf("-src-root")
- val srcRoot = if(idx > -1 && args.length > (idx + 1)){
- args(idx + 1)
- } else {
- ""
- }
+ val srcRoot = if(idx > -1 && args.length > (idx + 1)) args(idx + 1) else ""
idx = args.indexOf("-dst-root")
- val dstRoot = if(idx > -1 && args.length > (idx + 1)){
- args(idx + 1)
- } else {
- ""
- }
+ val dstRoot = if(idx > -1 && args.length > (idx + 1)) args(idx + 1) else ""
idx = args.indexOf("-cfg")
if (idx > -1 && args.length > (idx + 1)) {
syncWithNamedCfg(args(idx + 1), srcRoot, dstRoot)
Please sign in to comment.
Something went wrong with that request. Please try again.