mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-19 03:06:27 +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[] {
|
): string | string[] {
|
||||||
// check data url regex
|
// check data url regex
|
||||||
const matches = value.match(SplashImage.DATA_URI_REGEX);
|
const matches = value.match(SplashImage.DATA_URI_REGEX);
|
||||||
if (!_.isNull(matches)) {
|
if (matches != null) {
|
||||||
const [, media, data] = matches;
|
const [, media, data] = matches;
|
||||||
const [type] = media.split(';'); // discard mediatype parameters
|
const [type] = media.split(';'); // discard mediatype parameters
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ export const PermissiveBoolean = new t.Type<boolean, t.TypeOf<PermissiveType>>(
|
|||||||
case 'undefined':
|
case 'undefined':
|
||||||
return t.success(false);
|
return t.success(false);
|
||||||
case 'object':
|
case 'object':
|
||||||
if (_.isNull(v)) {
|
if (v == null) {
|
||||||
return t.success(false);
|
return t.success(false);
|
||||||
} else {
|
} else {
|
||||||
return t.failure(v, c);
|
return t.failure(v, c);
|
||||||
|
Loading…
Reference in New Issue
Block a user