diff --git a/CHANGELOG.md b/CHANGELOG.md index b84c5f4..6cb2f47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - Export object interfaces for both libraries - Add documentation for object interfaces +- Remove accidental redundant property "phrase" from ExampleResults ## 1.0.2 diff --git a/lib/src/exampleSearch.dart b/lib/src/exampleSearch.dart index d21d5b6..a6e552b 100644 --- a/lib/src/exampleSearch.dart +++ b/lib/src/exampleSearch.dart @@ -120,7 +120,6 @@ ExampleResults parseExamplePageData(String pageHtml, String phrase) { query: phrase, found: results.isNotEmpty, results: results ?? [], - uri: uriForExampleSearch(phrase), - phrase: phrase, + uri: uriForExampleSearch(phrase) ); } diff --git a/lib/src/objects.dart b/lib/src/objects.dart index addc81a..e3d6109 100644 --- a/lib/src/objects.dart +++ b/lib/src/objects.dart @@ -154,18 +154,15 @@ class ExampleResults { String uri; /// The examples that were found, if any. List results; - - String phrase; - ExampleResults({this.query, this.found, this.results, this.uri, this.phrase}); + ExampleResults({this.query, this.found, this.results, this.uri}); Map toJson() { return { 'query': query, 'found': found, 'results': results, - 'uri': uri, - 'phrase': phrase + 'uri': uri }; } }