siroky/Payola — comment on commit 7d01cc34c3a411074f513fef72d5592bda49f873
File: payola/web/client/src/main/scala/cz/payola/web/client/views/graph/VertexView.scala line 16
By siroky:

Try to avoid type checks (isInstanceOf) and type conversions (asInstanceOf) wherever it's possible. Match can be used instead and it's much clearer. Also avoid nulls, Options are better in that case.
```scala
val information: Option[InformationView] = vertexModel match {
case i: IdentifiedVertex => Some(new InformationView(i))
case _ => None
}
```