ONLY in the context of promises and callbacks, does the following make sense?
static getDefaultAdminHeader(_this) {
return new Promise((resolve, reject) => {
[NodeJS fs module].readFile([NAME OF FILE], (err, fd) => {
resolve(fd);
});
});
}
In other words: Does the promise above do anything more then simply add an extra callback? Or is there a programmatic plus to this structure?