mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
enable prefer-const rule for tslint, fix issues (#4409)
* enable prefer-const rule for tslint, fix issues * Update content-node-selector.component.spec.ts * Update content-node-selector.component.spec.ts * fix const * fix lint issues * update tests * update tests * update tests * fix code * fix page class
This commit is contained in:
committed by
Eugenio Romano
parent
26c5982a1a
commit
a7a48e8b2b
@@ -24,10 +24,10 @@ export interface FileInfo {
|
||||
export class FileUtils {
|
||||
|
||||
static flatten(folder: any): Promise<FileInfo[]> {
|
||||
let reader = folder.createReader();
|
||||
let files: FileInfo[] = [];
|
||||
const reader = folder.createReader();
|
||||
const files: FileInfo[] = [];
|
||||
return new Promise((resolve) => {
|
||||
let iterations = [];
|
||||
const iterations = [];
|
||||
(function traverse() {
|
||||
reader.readEntries((entries) => {
|
||||
if (!entries.length) {
|
||||
@@ -60,7 +60,7 @@ export class FileUtils {
|
||||
}
|
||||
|
||||
static toFileArray(fileList: FileList): File[] {
|
||||
let result = [];
|
||||
const result = [];
|
||||
|
||||
if (fileList && fileList.length > 0) {
|
||||
for (let i = 0; i < fileList.length; i++) {
|
||||
|
Reference in New Issue
Block a user