Skip to content

codemod is removing async from methods #521

@gitKrystan

Description

@gitKrystan

Input:

export default Controller.extend({
  async save() {
    await this.something;
  },
});

Expected Output:

export default class MyController extends Controller {
  async save() {
    await this.something;
  }
}

Actual Output:

export default class MyController extends Controller {
  save() {
    await this.something;
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions