@@ -114,14 +114,14 @@ class ResultSet {
114
114
let prop = props [ i ] ;
115
115
var propIndex = prop [ 0 ] ;
116
116
let prop_name = this . _graph . getProperty ( propIndex ) ;
117
- //will try to get the right property for at most 10 times
117
+ // will try to get the right property for at most 10 times
118
118
var tries = 0 ;
119
119
while ( prop_name == undefined && tries < 10 ) {
120
120
prop_name = await this . _graph . fetchAndGetProperty ( propIndex ) ;
121
121
tries ++ ;
122
122
}
123
123
if ( prop_name == undefined ) {
124
- console . log ( "unable to retrive property name value for propety index " + propIndex ) ;
124
+ console . warn ( "unable to retrive property name value for propety index " + propIndex ) ;
125
125
}
126
126
let prop_value = this . parseScalar ( prop . slice ( 1 , prop . length ) ) ;
127
127
properties [ prop_name ] = prop_value ;
@@ -136,14 +136,14 @@ class ResultSet {
136
136
137
137
let node_id = cell [ 0 ] ;
138
138
let label = this . _graph . getLabel ( cell [ 1 ] [ 0 ] ) ;
139
- //will try to get the right label for at most 10 times
139
+ // will try to get the right label for at most 10 times
140
140
var tries = 0 ;
141
141
while ( label == undefined && tries < 10 ) {
142
- tries = await this . _graph . fetchAndGetLabel ( cell [ 1 ] [ 0 ] ) ;
143
- x ++ ;
142
+ label = await this . _graph . fetchAndGetLabel ( cell [ 1 ] [ 0 ] ) ;
143
+ tries ++ ;
144
144
}
145
145
if ( label == undefined ) {
146
- console . log ( "unable to retrive label value for label index " + cell [ 1 ] [ 0 ] ) ;
146
+ console . warn ( "unable to retrive label value for label index " + cell [ 1 ] [ 0 ] ) ;
147
147
}
148
148
let properties = await this . parseEntityProperties ( cell [ 2 ] ) ;
149
149
let node = new Node ( label , properties ) ;
@@ -160,14 +160,14 @@ class ResultSet {
160
160
161
161
let edge_id = cell [ 0 ] ;
162
162
let relation = this . _graph . getRelationship ( cell [ 1 ] ) ;
163
- //will try to get the right relationship type for at most 10 times
163
+ // will try to get the right relationship type for at most 10 times
164
164
var tries = 0 ;
165
165
while ( relation == undefined && tries < 10 ) {
166
166
relation = await this . _graph . fetchAndGetRelationship ( cell [ 1 ] )
167
167
tries ++ ;
168
168
}
169
169
if ( relation == undefined ) {
170
- console . log ( "unable to retrive relationship type value for relationship index " + cell [ 1 ] ) ;
170
+ console . warn ( "unable to retrive relationship type value for relationship index " + cell [ 1 ] ) ;
171
171
}
172
172
let src_node_id = cell [ 2 ] ;
173
173
let dest_node_id = cell [ 3 ] ;
0 commit comments