Skip to content

Commit 667e735

Browse files
committed
ProfilePlan -> ProfiledPlan
1 parent 4a2273a commit 667e735

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/result.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class ResultSummary {
127127
this.statementType = statementType;
128128
this.statistics = new StatementStatistics(statistics || {});
129129
this.plan = plan || profile ? new Plan(plan || profile) : false;
130-
this.profile = profile ? new ProfilePlan(profile) : false;
130+
this.profile = profile ? new ProfiledPlan(profile) : false;
131131
}
132132

133133
/**
@@ -143,7 +143,7 @@ class ResultSummary {
143143
* @return {boolean}
144144
*/
145145
hasProfile() {
146-
return this.profile instanceof ProfilePlan
146+
return this.profile instanceof ProfiledPlan
147147
}
148148
}
149149

@@ -169,9 +169,9 @@ class Plan {
169169
* Class for execution plan received by prepending Cypher with PROFILE.
170170
* @access public
171171
*/
172-
class ProfilePlan {
172+
class ProfiledPlan {
173173
/**
174-
* Create a ProfilePlan instance
174+
* Create a ProfiledPlan instance
175175
* @constructor
176176
* @param {Object} plan - Object with plan data
177177
*/
@@ -181,7 +181,7 @@ class ProfilePlan {
181181
this.arguments = profile.args;
182182
this.dbHits = profile.args.DbHits.toInt();
183183
this.rows = profile.args.Rows.toInt();
184-
this.children = profile.children ? profile.children.map((child) => new ProfilePlan(child)) : [];
184+
this.children = profile.children ? profile.children.map((child) => new ProfiledPlan(child)) : [];
185185
}
186186
}
187187

0 commit comments

Comments
 (0)