Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Commit

Permalink
Attempt to ignore null string from GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwofford committed Oct 29, 2019
1 parent 33bc7cc commit acbf3a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ const createRecord = (baseName, record) => {
}

const toParam = obj =>
'?' + Object.keys(obj).filter(key => key).map(key => (
'?' + Object.keys(obj)
.filter(key => key && key != 'null')
.map(key => (
`${key}=${obj[key]}`
)).join('&')

Expand Down

0 comments on commit acbf3a6

Please sign in to comment.