Skip to content

Commit

Permalink
Update src/delete/strategies/organization.delete.strategy.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Ruben Gees <[email protected]>
  • Loading branch information
prom3theu5 and rubengees committed Apr 6, 2023
1 parent 800adc6 commit efcc59a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/delete/strategies/organization.delete.strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ import { DeleteStrategy, RestInput } from "../../types"
import {GitHub} from "@actions/github/lib/utils";

export default class OrganizationDeleteStrategy implements DeleteStrategy {
private octokit: InstanceType<typeof GitHub>;

constructor(octokit: InstanceType<typeof GitHub>) {
this.octokit = octokit;
}
constructor(private readonly octokit: InstanceType<typeof GitHub>) {}
async deletePackageVersion(input: RestInput, name: string, id: string): Promise<void> {
await this.octokit.rest.packages.deletePackageVersionForOrg({
package_name: name,
Expand Down

0 comments on commit efcc59a

Please sign in to comment.