Skip to content

Commit

Permalink
refactor: Remove unneeded split in getHttp (#8939)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Feb 15, 2021
1 parent 769214c commit 7213d1d
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -181,10 +181,9 @@ module.exports = {
return event.http;
}

return {
method: event.http.split(' ')[0],
path: event.http.split(' ')[1],
};
const [method, path] = event.http.split(' ');

return { method, path };
},

getHttpPath(http) {
Expand Down

0 comments on commit 7213d1d

Please sign in to comment.