Skip to content

[linter] [unnecessary_await_in_return] unnecessary await not detected #62282

@stephane-archer

Description

@stephane-archer
Future<T> _runWithPermissionRetry<T>(
    FileSystemEntity entity, FutureOr<T> Function() operation) async {
  try {
    return await operation(); // not detected
  } on PathAccessException {
    await askUserPermission(entity);
    return await operation(); // not detected
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions