We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c21dbd commit 5a002e0Copy full SHA for 5a002e0
app/lib/shared/notification.dart
@@ -31,11 +31,11 @@ class NotificationClient {
31
_doNotify(activeConfiguration.searchServicePrefix, package, null);
32
33
Future _doNotify(String servicePrefix, String package, String version) async {
34
+ var uri = '$servicePrefix/packages/$package';
35
+ if (version != null) {
36
+ uri = '$uri/$version';
37
+ }
38
try {
- var uri = '$servicePrefix/packages/$package';
- if (version != null) {
- uri = '$uri/$version';
- }
39
final response =
40
await _client.post(uri, headers: await prepareNotificationHeaders());
41
if (response.statusCode != 200) {
0 commit comments