mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 08:56:17 -04:00
Settings: Deprecate null as the default default value
This commit is contained in:
parent
aa221698c8
commit
428f8d1684
4 changed files with 12 additions and 3 deletions
|
@ -599,7 +599,9 @@ const lookupEnvironmentVariables = (obj) => {
|
|||
|
||||
if ((envVarValue === undefined) && (defaultValue === undefined)) {
|
||||
console.warn(`Environment variable "${envVarName}" does not contain any value for ` +
|
||||
`configuration key "${key}", and no default was given. Returning null.`);
|
||||
`configuration key "${key}", and no default was given. Using null. ` +
|
||||
'THIS BEHAVIOR MAY CHANGE IN A FUTURE VERSION OF ETHERPAD; you should ' +
|
||||
'explicitly use "null" as the default if you want to continue to use null.');
|
||||
|
||||
/*
|
||||
* We have to return null, because if we just returned undefined, the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue