From 74d33427db26c866ccadeea60150bf49f6731d11 Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 15 Apr 2022 21:35:01 +1000 Subject: [PATCH] More code formating --- load/frame-page.js | 8 ++++---- save.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/load/frame-page.js b/load/frame-page.js index 977ad95..025e11f 100644 --- a/load/frame-page.js +++ b/load/frame-page.js @@ -48,19 +48,19 @@ function PageFrame() { get: function() { log(LOG_DEBUG,'- Checking if user can access frame: '+this.page); log(LOG_DEBUG,' - User: '+JSON.stringify(user.number)); - log(LOG_DEBUG,' - Frame Owner: '+JSON.stringify(this.owner)+', System Frame: '+(this.pageowner == SYSTEM_OWNER)); + log(LOG_DEBUG,' - Frame Owner: '+JSON.stringify(this.owner)+', System Frame: '+(this.pageowner === SYSTEM_OWNER)); // user.number 0 is unidentified user. if (user.number) { return ( - (this.isAccessible && this.pageowner == SYSTEM_OWNER && ! this.isPublic) || + (this.isAccessible && this.pageowner === SYSTEM_OWNER && ! this.isPublic) || (this.isAccessible && this.isPublic) || (this.isAccessible && ! this.isPublic && this.isMember) || (pageEditor(this.frame)) ); } else { - return (this.isAccessible && this.pageowner == SYSTEM_OWNER && this.isPublic); + return (this.isAccessible && this.pageowner === SYSTEM_OWNER && this.isPublic); } } }); @@ -169,7 +169,7 @@ PageFrame.prototype.fieldValue = function(key) { for each (var k in this.frame_fields) { log(LOG_DEBUG,' - k:'+JSON.stringify(k)); - if (k.fname == key) { + if (k.fname === key) { return k.fvalue; } } diff --git a/save.js b/save.js index 1b8321b..f11cd8d 100644 --- a/save.js +++ b/save.js @@ -88,7 +88,7 @@ if (! send || ! frame || file) { } // @NOTE: We need to use a binary signature then base64 encode it, as mailers may strip 0x0a while messages are in transit. -if (send == 1 && options.gpg_key) { +if (send === 1 && options.gpg_key) { if (! file) { file = system.mods_dir+'ansitex/text/'+frame.page+'.tex'; }