Switch _.isNull usage to native versions

Change-type: patch
This commit is contained in:
Pagan Gazzard 2023-10-13 15:14:37 +01:00 committed by Felipe Lalanne
parent ca3faebfc9
commit 8e23091aa9
2 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ export class SplashImage extends ConfigBackend {
): string | string[] {
// check data url regex
const matches = value.match(SplashImage.DATA_URI_REGEX);
if (!_.isNull(matches)) {
if (matches != null) {
const [, media, data] = matches;
const [type] = media.split(';'); // discard mediatype parameters

View File

@ -30,7 +30,7 @@ export const PermissiveBoolean = new t.Type<boolean, t.TypeOf<PermissiveType>>(
case 'undefined':
return t.success(false);
case 'object':
if (_.isNull(v)) {
if (v == null) {
return t.success(false);
} else {
return t.failure(v, c);