Skip to content

Commit

Permalink
safer type check
Browse files Browse the repository at this point in the history
  • Loading branch information
chdeskur committed Dec 4, 2024
1 parent a9d706b commit 173041c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { OpenAPIV3_1 } from "openapi-types";
// import { UnreachableCaseError } from "ts-essentials";
import {
BaseOpenApiV3_1ConverterNode,
BaseOpenApiV3_1ConverterNodeConstructorArgs,
BaseOpenApiV3_1ConverterNode,
BaseOpenApiV3_1ConverterNodeConstructorArgs,
} from "../../BaseOpenApiV3_1Converter.node";
import { extendType } from "../../utils/extendType";

Expand All @@ -17,7 +17,7 @@ export class XFernBasePathConverterNode extends BaseOpenApiV3_1ConverterNode<Ope
parse(): void {
this.basePath = extendType<{ "x-fern-base-path"?: string }>(this.input)["x-fern-base-path"];

if (this.basePath) {
if (this.basePath != null) {
if (this.basePath.startsWith("/")) {
this.basePath = this.basePath.slice(1);
}
Expand Down

0 comments on commit 173041c

Please sign in to comment.