Skip to content

Commit 2c21606

Browse files
committed
fix (Users.register) remove redundant argument check
1 parent 16f6bc5 commit 2c21606

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/users/register.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,9 @@ import Utils from '../utils'
22
import Urls from '../urls'
33
import Request from '../request'
44

5-
import User from './user'
6-
75
import { parseResponse, wrapAsync } from './utils'
86

97
export function register(user /** async */) {
10-
if (!(user instanceof User)) {
11-
throw new Error('Only Backendless.User accepted')
12-
}
13-
148
const responder = Utils.extractResponder(arguments)
159

1610
const isAsync = !!responder

0 commit comments

Comments
 (0)