Remove trailing spaces

This commit is contained in:
Daniel García Aubert 2018-02-19 19:05:13 +01:00
parent 46587e3cf1
commit 7c7d606aa7

View File

@ -28,7 +28,7 @@ const apikeyGetters = [
function getApikeyTokenFromHeaderAuthorization(req) { function getApikeyTokenFromHeaderAuthorization(req) {
const credentials = basicAuth(req); const credentials = basicAuth(req);
if (credentials) { if (credentials) {
return { return {
username: credentials.username, username: credentials.username,
@ -36,7 +36,7 @@ function getApikeyTokenFromHeaderAuthorization(req) {
}; };
} else { } else {
return { return {
username: null, username: null,
token: null, token: null,
}; };
} }
@ -44,13 +44,13 @@ function getApikeyTokenFromHeaderAuthorization(req) {
function getApikeyTokenFromRequestQueryString(req) { function getApikeyTokenFromRequestQueryString(req) {
let token = null; let token = null;
if (req.query && req.query.api_key) { if (req.query && req.query.api_key) {
token = req.query.api_key; token = req.query.api_key;
} else if (req.query && req.query.map_key) { } else if (req.query && req.query.map_key) {
token = req.query.map_key; token = req.query.map_key;
} }
return { return {
username: null, username: null,
token: token, token: token,
@ -59,7 +59,7 @@ function getApikeyTokenFromRequestQueryString(req) {
function getApikeyTokenFromRequestBody(req) { function getApikeyTokenFromRequestBody(req) {
let token = null; let token = null;
if (req.body && req.body.api_key) { if (req.body && req.body.api_key) {
token = req.body.api_key; token = req.body.api_key;
} else if (req.body && req.body.map_key) { } else if (req.body && req.body.map_key) {