Skip to content

Commit 3aba531

Browse files
author
ali yüksel
committed
#27.1 failed
1 parent 96602e9 commit 3aba531

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/camera.ios.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ class UIImagePickerControllerDelegateImpl extends NSObject implements UIImagePic
1919
private _keepAspectRatio: boolean;
2020
private _saveToGallery: boolean;
2121

22-
public initWithCallback(callback: (result?) => void,errorCallback: (result?) => void): UIImagePickerControllerDelegateImpl {
22+
public initWithCallback(callback: (result?) => void, errorCallback: (result?) => void): UIImagePickerControllerDelegateImpl {
2323
this._callback = callback;
2424
this._errorCallback = errorCallback;
2525
return this;
2626
}
2727

28-
public initWithCallbackAndOptions(callback: (result?) => void,errorCallback: (result?) => void, options?): UIImagePickerControllerDelegateImpl {
28+
public initWithCallbackAndOptions(callback: (result?) => void, errorCallback: (result?) => void, options?): UIImagePickerControllerDelegateImpl {
2929
this._callback = callback;
3030
this._errorCallback = errorCallback;
3131
if (options) {
@@ -151,10 +151,10 @@ export let takePicture = function (options): Promise<any> {
151151
resolve, reject, { width: reqWidth, height: reqHeight, keepAspectRatio: keepAspectRatio, saveToGallery: saveToGallery });
152152
} else if (saveToGallery) {
153153
listener = UIImagePickerControllerDelegateImpl.new().initWithCallbackAndOptions(
154-
resolve,reject, { saveToGallery: saveToGallery, keepAspectRatio: keepAspectRatio });
154+
resolve, reject, { saveToGallery: saveToGallery, keepAspectRatio: keepAspectRatio });
155155
}
156156
else {
157-
listener = UIImagePickerControllerDelegateImpl.new().initWithCallback(resolve,reject);
157+
listener = UIImagePickerControllerDelegateImpl.new().initWithCallback(resolve, reject);
158158
}
159159
imagePickerController.delegate = listener;
160160

0 commit comments

Comments
 (0)