chore: fix eslint issues (#9017)

This commit is contained in:
Martin Guillon
2020-11-11 17:46:36 +01:00
committed by GitHub
parent 05faa867d0
commit c1f231d88e
171 changed files with 1607 additions and 1550 deletions

View File

@@ -1,6 +1,6 @@
import { Trace } from '../trace';
declare var UIImagePickerControllerSourceType: any;
declare let UIImagePickerControllerSourceType: any;
const radToDeg = Math.PI / 180;
@@ -11,7 +11,7 @@ function isOrientationLandscape(orientation: number) {
function openFileAtRootModule(filePath: string): boolean {
try {
const appPath = iOSNativeHelper.getCurrentAppPath();
let path = iOSNativeHelper.isRealDevice() ? filePath.replace('~', appPath) : filePath;
const path = iOSNativeHelper.isRealDevice() ? filePath.replace('~', appPath) : filePath;
const controller = UIDocumentInteractionController.interactionControllerWithURL(NSURL.fileURLWithPath(path));
controller.delegate = iOSNativeHelper.createUIDocumentInteractionControllerDelegate();
@@ -43,7 +43,7 @@ export namespace iOSNativeHelper {
export function nsArrayToJSArray(a: NSArray<any>): Array<Object> {
const arr = [];
if (a !== undefined) {
let count = a.count;
const count = a.count;
for (let i = 0; i < count; i++) {
arr.push(a.objectAtIndex(i));
}