mirror of
https://github.com/danbulant/discord.js
synced 2026-06-20 15:11:32 +00:00
Webpack build for branch master: b91f8f27be
This commit is contained in:
parent
fcfa870913
commit
4ddcef94de
2 changed files with 4 additions and 3 deletions
|
|
@ -8948,11 +8948,12 @@ class ClientDataResolver {
|
||||||
} else {
|
} else {
|
||||||
const file = path.resolve(resource);
|
const file = path.resolve(resource);
|
||||||
fs.stat(file, (err, stats) => {
|
fs.stat(file, (err, stats) => {
|
||||||
if (err) reject(err);
|
if (err) return reject(err);
|
||||||
if (!stats || !stats.isFile()) throw new Error(`The file could not be found: ${file}`);
|
if (!stats || !stats.isFile()) return reject(new Error(`The file could not be found: ${file}`));
|
||||||
fs.readFile(file, (err2, data) => {
|
fs.readFile(file, (err2, data) => {
|
||||||
if (err2) reject(err2); else resolve(data);
|
if (err2) reject(err2); else resolve(data);
|
||||||
});
|
});
|
||||||
|
return null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue