Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMrMilchmann committed Apr 14, 2024
1 parent 348a8c0 commit 647e12a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/kotlin/com/gw2tb/apigen/APIGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class APIGenerator(
*
* @since 0.7.0
*/
public val irApiV1: IRAPIVersion<IRAPIQuery.V1, IRAPIType.V1>
public val irApiV1: IRAPIVersion<IRAPIQuery.V1, IRAPIType.V1> = GW2v1.build(v1Endpoints)

/**
* Version 1 (`v1`) of the Guild Wars 2 API.
Expand All @@ -88,7 +88,7 @@ public class APIGenerator(
*
* @since 0.7.0
*/
public val irApiV2: IRAPIVersion<IRAPIQuery.V2, IRAPIType.V2>
public val irApiV2: IRAPIVersion<IRAPIQuery.V2, IRAPIType.V2> = GW2v2.build(v2Endpoints)

/**
* Version 2 (`v2`) of the Guild Wars 2 API.
Expand All @@ -105,9 +105,6 @@ public class APIGenerator(
public val mumbleIdentity: SchemaTypeDeclaration?

init {
irApiV1 = GW2v1.build(v1Endpoints)
irApiV2 = GW2v2.build(v2Endpoints)

aliases = collectAliases { collector ->
apiV1 = irApiV1.resolve(collector)
apiV2 = irApiV2.resolve(collector, v2SchemaVersion)
Expand Down

0 comments on commit 647e12a

Please sign in to comment.