Improve for/if handling #24

Open
timowest opened this Issue Jan 17, 2012 · 0 comments

1 participant

@timowest
Owner
  for (p <- paths) {
    if (p.contains(".svn")) {
      //continue
    } else if (suffix == null || p.endsWith(suffix)) {
      additions.add(new Resource(p, false, false))
    }
  }

should be translated as

  for (p <- paths if !p.contains(".svn") && (suffix == null || p.endsWith(suffix))) {
    additions.add(new Resource(p, false, false))
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment