Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
address comments
  • Loading branch information
yjbanov committed Aug 7, 2017
commit 2e1a69817b45105261e96eb4e604e9cf39c3fae0
3 changes: 1 addition & 2 deletions lib/src/stack_trace.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ List<Map<String, dynamic>> encodeStackTrace(dynamic stackTrace) {
final List<Map<String, dynamic>> frames = <Map<String, dynamic>>[];
for (int t = 0; t < chain.traces.length; t += 1) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not t++?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's Flutter style.

frames.addAll(chain.traces[t].frames.map(encodeStackTraceFrame));
if (t < chain.traces.length - 1) {
if (t < chain.traces.length - 1)
frames.add(asynchronousGapFrameJson);
}
}
return frames;
}
Expand Down