fmt, fix check

pull/971/head
Lucas Nogueira 1 year ago
parent 569defbe94
commit e414579b31
No known key found for this signature in database
GPG Key ID: FFEA6C72E73482F1

@ -33,7 +33,7 @@ const ignore = [
async function checkFile(file) { async function checkFile(file) {
if ( if (
extensions.some((e) => file.endsWith(e)) && extensions.some((e) => file.endsWith(e)) &&
!ignore.some((i) => file.endsWith(i)) !ignore.some((i) => file.includes(`${path.sep}${i}`))
) { ) {
const fileStream = fs.createReadStream(file); const fileStream = fs.createReadStream(file);
const rl = readline.createInterface({ const rl = readline.createInterface({
@ -125,6 +125,6 @@ if (files.length > 0) {
console.log(missing.join("\n")); console.log(missing.join("\n"));
process.exit(1); process.exit(1);
} }
}, }
); );
} }

@ -20,8 +20,8 @@ use dbus::{
Path, Path,
}; };
use super::{Hint, Notification, Timeout};
use super::xdg::{NOTIFICATION_NAMESPACE, NOTIFICATION_OBJECTPATH}; use super::xdg::{NOTIFICATION_NAMESPACE, NOTIFICATION_OBJECTPATH};
use super::{Hint, Notification, Timeout};
static DBUS_ERROR_FAILED: &str = "org.freedesktop.DBus.Error.Failed"; static DBUS_ERROR_FAILED: &str = "org.freedesktop.DBus.Error.Failed";
/// Version of the crate equals the version server. /// Version of the crate equals the version server.

Loading…
Cancel
Save