remove hard_coded var
Project: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/commit/f1870404 Tree: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/tree/f1870404 Diff: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/diff/f1870404 Branch: refs/heads/master Commit: f187040411f8ff967972df7dff2fafeff1d8a993 Parents: ea26552 Author: daewon <[email protected]> Authored: Thu Apr 19 18:59:04 2018 +0900 Committer: daewon <[email protected]> Committed: Thu Apr 19 18:59:04 2018 +0900 ---------------------------------------------------------------------- s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/f1870404/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala ---------------------------------------------------------------------- diff --git a/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala b/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala index 74574ed..4a28f0a 100644 --- a/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala +++ b/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala @@ -268,7 +268,7 @@ class S2Graph(_config: Config)(implicit val ec: ExecutionContext) extends S2Grap (queryParam.vertexIds ++ vids).distinct.map(vid => elementBuilder.newVertex(vid)) } - if (true) matchedVertices.flatMap(vs => getVertices(vs)) + if (queryParam.fetchProp) matchedVertices.flatMap(vs => getVertices(vs)) else matchedVertices }
