-
Notifications
You must be signed in to change notification settings - Fork 704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tidying lint warnings #1691
Tidying lint warnings #1691
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As Kathy is out, I'll leave this review to Jon, but it IS nice to see all those "new" instances removed!
request.response | ||
..write('Hello, world!') | ||
..close(); | ||
request.response.write('Hello, world!'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these *_.server.dart examples need to be kept in sync with their counterparts in dart-lang/dart-tutorials-samples
? Not a blocker for this PR, I'm mostly asking just to get a general sense of our approach to this right now.
See, e.g. https://github.com/dart-lang/dart-tutorials-samples/blob/master/httpserver/bin/hello_world_server.dart
(There are very slight differences between the code for these examples between dart-lang/site-www and dart-lang/dart-tutorials-samples)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll create a PR for dart-lang/dart-tutorials-samples repo to bring those samples up to date. I see anagram, for example, is stuck in Dart v1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That took slightly longer than expected.
..write('Hello, world!') | ||
..close(); | ||
request.response.write('Hello, world!'); | ||
await request.response.close(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aye, I'll do a full sweep of the tutorial samples
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also somewhere in dart-archive/dart-tutorials-samples#49
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'll hold this PR open until Kathy has had a chance to review and sign off on it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @domesticmouse!
I believe that #1717 will fix the build. Once that’s in, we should rerun the travis build, just to make sure… |
Should we carry out this style of fixes, or am I holding it wrong?