Improve check jobs parameters tests
[oweals/peertube.git] / server / helpers / core-utils.ts
index 0c6c36d11741e0d58fcf7c00fbb5d63751a21d27..4981bb4ecb4e64cee7566ed65673201a7f427ce2 100644 (file)
@@ -27,7 +27,7 @@ function sanitizeUrl (url: string) {
 
 // Don't import remote scheme from constants because we are in core utils
 function sanitizeHost (host: string, remoteScheme: string) {
-  let toRemove = remoteScheme === 'https' ? 443 : 80
+  const toRemove = remoteScheme === 'https' ? 443 : 80
 
   return host.replace(new RegExp(`:${toRemove}$`), '')
 }