Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
onesignal-node
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Schedules
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Cedar Studios
onesignal-node
Commits
28f21f05
Commit
28f21f05
authored
Mar 17, 2018
by
Fellipe Capelli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update array iteration on checkCredential method
parent
5a282702
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
client.js
lib/client.js
+1
-1
No files found.
lib/client.js
View file @
28f21f05
...
...
@@ -53,7 +53,7 @@ var basicRequest = function (url, apiKey, method, body, callback) {
* @returns {boolean}
*/
var
checkCredential
=
function
(
credentialName
,
credential
)
{
for
(
var
i
=
0
,
credentialLen
=
ALLOWED_CREDENTIALS
.
length
;
i
<
credentialLen
;
i
++
)
{
for
(
var
i
=
0
;
i
<
ALLOWED_CREDENTIALS
.
length
;
i
++
)
{
if
(
ALLOWED_CREDENTIALS
[
i
].
name
===
credentialName
)
{
if
(
typeof
credential
!==
ALLOWED_CREDENTIALS
[
i
].
type
)
{
throw
credentialName
+
' must be a '
+
ALLOWED_CREDENTIALS
[
i
].
type
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment