Skip to content
Closed
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
Fix unit test fails
  • Loading branch information
Zhihui Tian authored Feb 27, 2019
commit 002acf30d1d9b08684f81b65fe969cda71cb1f34
2 changes: 1 addition & 1 deletion lib/sentry.dart
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class SentryClient {

@visibleForTesting
String get postUri =>
'${dsnUri.scheme}://${dsnUri.host}:${dsnUri.port}/api/$projectId/store/';
'${dsnUri.scheme}://${dsnUri.host}${dsnUri.port != 80 && dsnUri.port != 443 ? ':' + dsnUri.port.toString() : ''}/api/$projectId/store/';
Copy link
Contributor

Choose a reason for hiding this comment

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

This is probably a good time to switch from the => shorthand to a { } block syntax, and make port a variable.

Copy link
Contributor

Choose a reason for hiding this comment

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

':' + dsnUri.port.toString() can be replaced with ':${dsnUri.port}'


/// Reports an [event] to Sentry.io.
Future<SentryResponse> capture(
Expand Down