Code style fix.

This commit is contained in:
Oleksii Trekhleb 2018-06-25 14:34:40 +03:00
parent 88d038b5c8
commit c96bbdf00e

View File

@ -115,9 +115,11 @@ export default class Graph {
*/ */
findEdge(startVertex, endVertex) { findEdge(startVertex, endVertex) {
const vertex = this.getVertexByKey(startVertex.getKey()); const vertex = this.getVertexByKey(startVertex.getKey());
if (!vertex) { if (!vertex) {
return null; return null;
} }
return vertex.findEdge(endVertex); return vertex.findEdge(endVertex);
} }