Update layers.js

This commit is contained in:
Skillet 2023-03-06 15:17:21 -05:00 committed by GitHub
parent d1b8c7e9f6
commit 17deebf4a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ class Layers {
await this.pull();
const matches = this.layers.filter(condition);
if (matches.length === 1) return matches[0];
if (matches.length >= 1) return matches[0];
return null;
}