Skip to content

Commit

Permalink
fix(log): Move variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Nov 24, 2017
1 parent 190e40a commit 970e184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/plugin/log-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ export class LogPlugin extends BasePlugin {
const snapshotRef = getSnapshotRef(ref);

if (graphRef || snapshotRef) {
const { values, valuesFlushed } = snapshotRef;
logger_.groupCollapsed("Subscriber");
if (snapshotRef) {
const { values, valuesFlushed } = snapshotRef;
logger_.log("Value count =", values.length + valuesFlushed);
if (values.length > 0) {
logger_.log("Last value =", values[values.length - 1].value);
Expand Down

0 comments on commit 970e184

Please sign in to comment.