You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
Chore: Add eslint rule to enforce strict equality (eqeqeq)
This commit is contained in:
@@ -137,7 +137,7 @@ export function execCommand(command: string, options: any = null): Promise<strin
|
||||
return new Promise((resolve, reject) => {
|
||||
exec(command, options, (error: any, stdout: any, stderr: any) => {
|
||||
if (error) {
|
||||
if (error.signal == 'SIGTERM') {
|
||||
if (error.signal === 'SIGTERM') {
|
||||
resolve('Process was killed');
|
||||
} else {
|
||||
reject(error);
|
||||
@@ -301,9 +301,9 @@ export function fileExists(filePath: string) {
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
fs.stat(filePath, function(err: any) {
|
||||
if (err == null) {
|
||||
if (!err) {
|
||||
resolve(true);
|
||||
} else if (err.code == 'ENOENT') {
|
||||
} else if (err.code === 'ENOENT') {
|
||||
resolve(false);
|
||||
} else {
|
||||
reject(err);
|
||||
|
||||
Reference in New Issue
Block a user