mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-18 18:56:24 +00:00
Switch _.isNull usage to native versions
Change-type: patch
This commit is contained in:
parent
ca3faebfc9
commit
8e23091aa9
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user