Skip to main content
Sign in
Snippets Groups Projects
Commit 879b5a7f authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Fix obsolete use of metadata (no more in session).

parent c9094802
No related branches found
No related tags found
No related merge requests found
<script context="module" lang="ts"> <script context="module" lang="ts">
import { strictAudit } from "@auditors/core" import { strictAudit } from "@auditors/core"
import type { Metadata } from "@openfisca/json-model"
import { import {
auditRawParameterToEditable, auditRawParameterToEditable,
iterParameterAncestors, iterParameterAncestors,
...@@ -9,6 +8,7 @@ ...@@ -9,6 +8,7 @@
import type { LoadInput, LoadOutput } from "@sveltejs/kit" import type { LoadInput, LoadOutput } from "@sveltejs/kit"
import yaml from "js-yaml" import yaml from "js-yaml"
import { metadata } from "$lib/metadata"
import { getParameter, labelFromParameterClass } from "$lib/parameters" import { getParameter, labelFromParameterClass } from "$lib/parameters"
import type { SessionOpenFiscaRepository } from "$lib/sessions" import type { SessionOpenFiscaRepository } from "$lib/sessions"
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
} }
let unprocessedParameterUrl = newParameterRepositoryRawUrl( let unprocessedParameterUrl = newParameterRepositoryRawUrl(
session.metadata,
session.openfiscaRepository, session.openfiscaRepository,
processedParameter, processedParameter,
) )
...@@ -75,7 +74,6 @@ ...@@ -75,7 +74,6 @@
} }
export function newParameterRepositoryRawUrl( export function newParameterRepositoryRawUrl(
metadata: Metadata,
{ branch, group, project, rawUrlTemplate }: SessionOpenFiscaRepository, { branch, group, project, rawUrlTemplate }: SessionOpenFiscaRepository,
parameter: Parameter, parameter: Parameter,
): string | undefined { ): string | undefined {
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment