Skip to content
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

Declare local variables for the 'href' field, to promote and avoid printing 'null' #3788

Merged
merged 2 commits into from
Jun 18, 2024

Conversation

srawlins
Copy link
Member

This change would have more teeth to it if we had a lint rule that guarded against interpolating null into a string (dart-lang/linter#3149), but I think it still makes the code a teensy bit safer / more readable.


  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Contribution guidelines:

Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.

@srawlins
Copy link
Member Author

CC @dart-lang/analyzer-team

lib/src/markdown_processor.dart Outdated Show resolved Hide resolved
@srawlins srawlins merged commit 6330a13 into dart-lang:main Jun 18, 2024
9 checks passed
@srawlins srawlins deleted the local-hrefs branch June 18, 2024 18:24
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Jun 20, 2024
Revisions updated by `dart tools/rev_sdk_deps.dart`.

dartdoc (https://github.com/dart-lang/dartdoc/compare/818d1f5..6330a13):
  6330a13e  2024-06-18  Sam Rawlins  Declare local variables for the 'href' field, to promote and avoid printing 'null' (dart-lang/dartdoc#3788)
  822ca007  2024-06-18  Sam Rawlins  Stop supporting '[this]' as a comment reference. (dart-lang/dartdoc#3765)

ecosystem (https://github.com/dart-lang/ecosystem/compare/8ada2ee..31148cd):
  31148cd  2024-06-20  Devon Carew  cosmetic update to the triager's comment format (dart-lang/ecosystem#273)

glob (https://github.com/dart-lang/glob/compare/eaec6a4..6d3ba5e):
  6d3ba5e  2024-06-20  Kevin Moore  update lints (dart-lang/glob#95)

logging (https://github.com/dart-lang/logging/compare/dbd6829..240ec33):
  240ec33  2024-06-20  Kevin Moore  Update lints dep, bump min SDK (dart-archive/logging#167)

Change-Id: I2a691c3a4d02f55a625afaa855ab3e5aa60259c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/372520
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants