src: Resolve problems ater updating API

'centos-8' was dropped from Distributions, causing a few problems. This resolves them.
This commit is contained in:
regexowl 2024-07-30 14:30:24 +02:00 committed by Ondřej Ezr
parent 434c90a6b8
commit 9a1d348a77
4 changed files with 9 additions and 3 deletions

View file

@ -132,7 +132,7 @@ const getLatestRelease = (distribution: Distributions) => {
? RHEL_9
: distribution.startsWith('rhel-8')
? RHEL_8
: distribution === 'centos-8'
: distribution === ('centos-8' as Distributions)
? CENTOS_9
: distribution;
};