Skip to content

Commit

Permalink
Making linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
idavis committed Apr 24, 2024
1 parent 7fd2980 commit cd8d6fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions playground/src/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ function VSDiagsToMarkers(errors: VSDiagnostic[]): monaco.editor.IMarkerData[] {
// get the language service profile from the URL
// default to unrestricted if not specified
export function getProfile(): TargetProfile {
return (
new URLSearchParams(window.location.search).get("profile") ?? "unrestricted"
);
return (new URLSearchParams(window.location.search).get("profile") ??
"unrestricted") as TargetProfile;
}

export function Editor(props: {
Expand Down

0 comments on commit cd8d6fc

Please sign in to comment.