Skip to content

Commit

Permalink
remove brackets fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Mar 4, 2021
1 parent dbb3ad0 commit 6c63200
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/libs/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ function Push_Authenticate(parameters) {
* @param {String} parameters.reportComment
* @param {Number} parameters.reportID
* @param {String} parameters.clientID
* @param {File} [parameters.file]
* @param {File|Object} [parameters.file]
* @returns {Promise}
*/
function Report_AddComment(parameters) {
Expand Down
4 changes: 1 addition & 3 deletions src/libs/HttpUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ function processHTTPRequest(url, method = 'get', body = null) {
*/
function xhr(command, data, type = 'post') {
const formData = new FormData();
_.each(data, (val, key) => {
formData.append(key, val);
});
_.each(data, (val, key) => formData.append(key, val));
return processHTTPRequest(`${CONFIG.EXPENSIFY.URL_API_ROOT}api?command=${command}`, type, formData);
}

Expand Down

0 comments on commit 6c63200

Please sign in to comment.