Removed isNormal() because 'null == undefined' so 'null != value' is sufficient

This commit is contained in:
djmaze 2020-08-17 21:57:56 +02:00
parent 1b811428e7
commit f6a55898c7
13 changed files with 50 additions and 68 deletions

View file

@ -1,4 +1,4 @@
import { pString, pInt, isNormal } from 'Common/Utils';
import { pString, pInt } from 'Common/Utils';
import * as Settings from 'Storage/Settings';
const ROOT = './',
@ -365,7 +365,7 @@ export function admin(screenName) {
* @returns {string}
*/
export function mailBox(folder, page = 1, search = '', threadUid = '') {
page = isNormal(page) ? pInt(page) : 1;
page = pInt(page, 1);
search = pString(search);
let result = HASH_PREFIX + 'mailbox/';