aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-10-02 12:19:02 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-10-02 12:19:02 +0200
commitc4403b29ad4db097af528a7f04eea07e0ed320d0 (patch)
treec7d84fe1c45b7aa35d49312a83f4e7cfdf6af909 /server/helpers
parent9f6bae3a9db13bf827f8aaff903aac06ec430903 (diff)
downloadPeerTube-c4403b29ad4db097af528a7f04eea07e0ed320d0.tar.gz
PeerTube-c4403b29ad4db097af528a7f04eea07e0ed320d0.tar.zst
PeerTube-c4403b29ad4db097af528a7f04eea07e0ed320d0.zip
Server: remove useless hash affectations
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/custom-validators/misc.js4
-rw-r--r--server/helpers/custom-validators/pods.js2
-rw-r--r--server/helpers/custom-validators/users.js6
-rw-r--r--server/helpers/custom-validators/videos.js22
-rw-r--r--server/helpers/peertube-crypto.js14
-rw-r--r--server/helpers/requests.js4
-rw-r--r--server/helpers/utils.js4
7 files changed, 28 insertions, 28 deletions
diff --git a/server/helpers/custom-validators/misc.js b/server/helpers/custom-validators/misc.js
index 782ae3dee..052726241 100644
--- a/server/helpers/custom-validators/misc.js
+++ b/server/helpers/custom-validators/misc.js
@@ -1,8 +1,8 @@
1'use strict' 1'use strict'
2 2
3const miscValidators = { 3const miscValidators = {
4 exists: exists, 4 exists,
5 isArray: isArray 5 isArray
6} 6}
7 7
8function exists (value) { 8function exists (value) {
diff --git a/server/helpers/custom-validators/pods.js b/server/helpers/custom-validators/pods.js
index 28d04a05d..40f8b5d0b 100644
--- a/server/helpers/custom-validators/pods.js
+++ b/server/helpers/custom-validators/pods.js
@@ -5,7 +5,7 @@ const validator = require('express-validator').validator
5const miscValidators = require('./misc') 5const miscValidators = require('./misc')
6 6
7const podsValidators = { 7const podsValidators = {
8 isEachUniqueUrlValid: isEachUniqueUrlValid 8 isEachUniqueUrlValid
9} 9}
10 10
11function isEachUniqueUrlValid (urls) { 11function isEachUniqueUrlValid (urls) {
diff --git a/server/helpers/custom-validators/users.js b/server/helpers/custom-validators/users.js
index 0e92989e5..88fa1592e 100644
--- a/server/helpers/custom-validators/users.js
+++ b/server/helpers/custom-validators/users.js
@@ -7,9 +7,9 @@ const constants = require('../../initializers/constants')
7const USERS_CONSTRAINTS_FIELDS = constants.CONSTRAINTS_FIELDS.USERS 7const USERS_CONSTRAINTS_FIELDS = constants.CONSTRAINTS_FIELDS.USERS
8 8
9const usersValidators = { 9const usersValidators = {
10 isUserPasswordValid: isUserPasswordValid, 10 isUserPasswordValid,
11 isUserRoleValid: isUserRoleValid, 11 isUserRoleValid,
12 isUserUsernameValid: isUserUsernameValid 12 isUserUsernameValid
13} 13}
14 14
15function isUserPasswordValid (value) { 15function isUserPasswordValid (value) {
diff --git a/server/helpers/custom-validators/videos.js b/server/helpers/custom-validators/videos.js
index ebe927208..a507ff686 100644
--- a/server/helpers/custom-validators/videos.js
+++ b/server/helpers/custom-validators/videos.js
@@ -8,17 +8,17 @@ const miscValidators = require('./misc')
8const VIDEOS_CONSTRAINTS_FIELDS = constants.CONSTRAINTS_FIELDS.VIDEOS 8const VIDEOS_CONSTRAINTS_FIELDS = constants.CONSTRAINTS_FIELDS.VIDEOS
9 9
10const videosValidators = { 10const videosValidators = {
11 isEachRemoteVideosValid: isEachRemoteVideosValid, 11 isEachRemoteVideosValid,
12 isVideoAuthorValid: isVideoAuthorValid, 12 isVideoAuthorValid,
13 isVideoDateValid: isVideoDateValid, 13 isVideoDateValid,
14 isVideoDescriptionValid: isVideoDescriptionValid, 14 isVideoDescriptionValid,
15 isVideoDurationValid: isVideoDurationValid, 15 isVideoDurationValid,
16 isVideoMagnetUriValid: isVideoMagnetUriValid, 16 isVideoMagnetUriValid,
17 isVideoNameValid: isVideoNameValid, 17 isVideoNameValid,
18 isVideoPodUrlValid: isVideoPodUrlValid, 18 isVideoPodUrlValid,
19 isVideoTagsValid: isVideoTagsValid, 19 isVideoTagsValid,
20 isVideoThumbnailValid: isVideoThumbnailValid, 20 isVideoThumbnailValid,
21 isVideoThumbnail64Valid: isVideoThumbnail64Valid 21 isVideoThumbnail64Valid
22} 22}
23 23
24function isEachRemoteVideosValid (requests) { 24function isEachRemoteVideosValid (requests) {
diff --git a/server/helpers/peertube-crypto.js b/server/helpers/peertube-crypto.js
index 4783e9965..1ff638b04 100644
--- a/server/helpers/peertube-crypto.js
+++ b/server/helpers/peertube-crypto.js
@@ -12,13 +12,13 @@ const logger = require('./logger')
12const algorithm = 'aes-256-ctr' 12const algorithm = 'aes-256-ctr'
13 13
14const peertubeCrypto = { 14const peertubeCrypto = {
15 checkSignature: checkSignature, 15 checkSignature,
16 comparePassword: comparePassword, 16 comparePassword,
17 createCertsIfNotExist: createCertsIfNotExist, 17 createCertsIfNotExist,
18 cryptPassword: cryptPassword, 18 cryptPassword,
19 decrypt: decrypt, 19 decrypt,
20 encrypt: encrypt, 20 encrypt,
21 sign: sign 21 sign
22} 22}
23 23
24function checkSignature (publicKey, rawData, hexSignature) { 24function checkSignature (publicKey, rawData, hexSignature) {
diff --git a/server/helpers/requests.js b/server/helpers/requests.js
index f76ff3473..95775c981 100644
--- a/server/helpers/requests.js
+++ b/server/helpers/requests.js
@@ -7,8 +7,8 @@ const constants = require('../initializers/constants')
7const peertubeCrypto = require('./peertube-crypto') 7const peertubeCrypto = require('./peertube-crypto')
8 8
9const requests = { 9const requests = {
10 makeRetryRequest: makeRetryRequest, 10 makeRetryRequest,
11 makeSecureRequest: makeSecureRequest 11 makeSecureRequest
12} 12}
13 13
14function makeRetryRequest (params, callback) { 14function makeRetryRequest (params, callback) {
diff --git a/server/helpers/utils.js b/server/helpers/utils.js
index a77116e08..9c2d402e3 100644
--- a/server/helpers/utils.js
+++ b/server/helpers/utils.js
@@ -5,8 +5,8 @@ const crypto = require('crypto')
5const logger = require('./logger') 5const logger = require('./logger')
6 6
7const utils = { 7const utils = {
8 cleanForExit: cleanForExit, 8 cleanForExit,
9 generateRandomString: generateRandomString 9 generateRandomString
10} 10}
11 11
12function generateRandomString (size, callback) { 12function generateRandomString (size, callback) {