A tick more concise:
```
val branch = if (v.endsWith("SNAPSHOT")) "master" else "v" + v
s"http://github.com/akka/akka/tree/$branch"
```