update style across the project

The eslint updates require style changes in all components.
This commit is contained in:
Jacob Kozol 2022-05-23 11:38:16 +02:00 committed by Sanne Raymaekers
parent 7959f2a563
commit 4fa71cede8
56 changed files with 5973 additions and 5177 deletions

View file

@ -1,15 +1,15 @@
function getBaseName(pathname) {
let release = '/';
const pathName = pathname.split('/');
let release = '/';
const pathName = pathname.split('/');
pathName.shift();
if (pathName[0] === 'beta') {
pathName.shift();
release = `/beta/`;
}
if (pathName[0] === 'beta') {
pathName.shift();
release = `/beta/`;
}
return `${release}${pathName[0]}/${pathName[1] || ''}`;
return `${release}${pathName[0]}/${pathName[1] || ''}`;
}
export default getBaseName;

View file

@ -1,16 +1,13 @@
import {
RHEL_8,
RHEL_9,
} from '../constants';
import { RHEL_8, RHEL_9 } from '../constants';
function isRhel(distro) {
switch (distro) {
case RHEL_8:
case RHEL_9:
return true;
default:
return false;
}
switch (distro) {
case RHEL_8:
case RHEL_9:
return true;
default:
return false;
}
}
export default isRhel;