Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: pkg/mdns/lib/src/packet.dart

Issue 1427763002: Fix warning and hint int test (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/mdns/test/decode_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/mdns/lib/src/packet.dart
diff --git a/pkg/mdns/lib/src/packet.dart b/pkg/mdns/lib/src/packet.dart
index 18eeca032e54707da1ae6b6d53f8602cf76e2c67..548e8c7d0f2287452d510c05dc92635316f84eef 100644
--- a/pkg/mdns/lib/src/packet.dart
+++ b/pkg/mdns/lib/src/packet.dart
@@ -82,7 +82,7 @@ List<DecodeResult> decodeMDnsResponse(List<int> packet) {
// Flags.
int flags = bd.getUint16(flagsOffset);
- if (flags != responseFlags) return;
+ if (flags != responseFlags) return null;
// Query count.
int qdcount = bd.getUint16(qdcountOffset);
// Number of answers.
« no previous file with comments | « no previous file | pkg/mdns/test/decode_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698