Skip to content

Commit e7537ec

Browse files
committed
Fixed by review
1 parent b8e93a6 commit e7537ec

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/av.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8907,11 +8907,12 @@
89078907
* of the function.
89088908
*/
89098909
requestSmsCode: function(data, options){
8910-
if(typeof data === 'string')
8910+
if(typeof data === 'string') {
89118911
data = { mobilePhoneNumber: data };
8912-
8913-
if(!data.mobilePhoneNumber)
8912+
}
8913+
if(!data.mobilePhoneNumber) {
89148914
throw "Missing mobilePhoneNumber.";
8915+
}
89158916
var request = AV._request("requestSmsCode", null, null, 'POST',
89168917
data);
89178918
return request._thenRunCallbacks(options);

0 commit comments

Comments
 (0)