mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
run linter
This commit is contained in:
parent
b52d8152bf
commit
850c66d1b6
1 changed files with 3 additions and 3 deletions
|
|
@ -10,7 +10,7 @@
|
||||||
* PR: https://github.com/kevva/executable/pull/10
|
* PR: https://github.com/kevva/executable/pull/10
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import fs, {Stats} from "fs";
|
import fs, {Stats} from 'fs';
|
||||||
|
|
||||||
export function isExecutable(fileStat: Stats): boolean {
|
export function isExecutable(fileStat: Stats): boolean {
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
|
|
@ -20,7 +20,7 @@ export function isExecutable(fileStat: Stats): boolean {
|
||||||
return Boolean(fileStat.mode & 0o0001 || fileStat.mode & 0o0010 || fileStat.mode & 0o0100);
|
return Boolean(fileStat.mode & 0o0001 || fileStat.mode & 0o0010 || fileStat.mode & 0o0100);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getBase64FileData(filePath: string): Promise<string|null> {
|
export function getBase64FileData(filePath: string): Promise<string | null> {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
return fs.readFile(filePath, (err, data) => {
|
return fs.readFile(filePath, (err, data) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
@ -34,4 +34,4 @@ export function getBase64FileData(filePath: string): Promise<string|null> {
|
||||||
return resolve(base64Data);
|
return resolve(base64Data);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue