[dart-lang/sdk] af99a7: Simplify return type.

0 views
Skip to first unread message

Bob Nystrom

unread,
Jan 16, 2026, 11:57:22 AM (2 days ago) Jan 16
to com...@dartlang.org
Branch: refs/heads/main
Home: https://github.com/dart-lang/sdk
Commit: af99a79f3ce91b9fd4818c83007aa991ceea864b
https://github.com/dart-lang/sdk/commit/af99a79f3ce91b9fd4818c83007aa991ceea864b
Author: Robert Nystrom <rnys...@google.com>
Date: 2026-01-16 (Fri, 16 Jan 2026)

Changed paths:
M pkg/analysis_server/lib/src/services/correction/dart/add_async.dart
M pkg/analysis_server/lib/src/services/correction/dart/remove_async.dart

Log Message:
-----------
Simplify return type.

I was learning my way around the assist code and stumbled onto a couple
of things that could be simpler.

I'm guessing the original code was written at a point in time when the
`element` getter was nullable but it isn't now, so the refactored code
here should be behaviorally equivalent to the original.

Change-Id: I6ee664024411ca7f95ff60091818bacaf88a8239
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/473600
Commit-Queue: Bob Nystrom <rnys...@google.com>
Reviewed-by: Brian Wilkerson <brianwi...@google.com>
Auto-Submit: Bob Nystrom <rnys...@google.com>



To unsubscribe from these emails, change your notification settings at https://github.com/dart-lang/sdk/settings/notifications
Reply all
Reply to author
Forward
0 new messages