Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Fix unused vars and rename #1485

Merged
merged 4 commits into from
Apr 11, 2019
Merged

Fix unused vars and rename #1485

merged 4 commits into from
Apr 11, 2019

Conversation

iskakaushik
Copy link
Contributor

No description provided.

@iskakaushik iskakaushik requested a review from mklim April 11, 2019 17:52
@iskakaushik iskakaushik requested a review from amirh as a code owner April 11, 2019 17:52
Copy link
Contributor

@mklim mklim left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -154,6 +154,13 @@ static Object latlngBoundsToJson(CameraPosition position) {
return data;
}

static Object latlngBoundsToJson(LatLngBounds latLngBounds) {
Copy link
Contributor

Choose a reason for hiding this comment

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

The return type can be Map<String, Object> arguments

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was being consistent with all the other return methods in this class. These are in most cases passed on to the dart side and not really used for their return nature, so left them as those. Ideally, I agree that we would use the most specific return type, but in this case I don't think it matters as much.

Copy link
Contributor

Choose a reason for hiding this comment

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

No problem!

@iskakaushik iskakaushik merged commit 07b486f into flutter:master Apr 11, 2019
@iskakaushik iskakaushik deleted the fix-unused-vars-and-rename branch April 11, 2019 18:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants