Skip to content
Snippets Groups Projects
Commit 7f67e15c authored by joel.vonderwe's avatar joel.vonderwe
Browse files

Correct type

parent 7f368ef9
No related branches found
No related tags found
No related merge requests found
import axios from 'axios'; import axios from 'axios';
import https from 'https'; import https from 'https';
import SharedConfig from '../config/SharedConfig'; import SharedConfig from '../config/SharedConfig';
import { Language } from '@prisma/client';
class SharedSonarManager { class SharedSonarManager {
...@@ -29,11 +28,11 @@ class SharedSonarManager { ...@@ -29,11 +28,11 @@ class SharedSonarManager {
* Most language have the same name, so by default the same name is returned, even for languages that doesn't exist in sonar. * Most language have the same name, so by default the same name is returned, even for languages that doesn't exist in sonar.
* @param language * @param language
*/ */
mapLanguage(language: Language): string { mapLanguage(language: string): string {
switch (language) { switch (language) {
case Language.csharp: case "csharp":
return "cs"; return "cs";
case Language.python: case "python":
return "py"; return "py";
default: default:
return language; return language;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment