summaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'controllers')
-rw-r--r--controllers/instance.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/controllers/instance.rb b/controllers/instance.rb
index bee4dfb..e8037e2 100644
--- a/controllers/instance.rb
+++ b/controllers/instance.rb
@@ -55,7 +55,7 @@ module NanoBot
node[index] = inject_environment_variables!(value)
end
when String
- node.start_with?('ENV') ? ENV.fetch(node.sub(/^ENV./, '')) : node
+ node.start_with?('ENV') ? ENV.fetch(node.sub(/^ENV./, ''), nil) : node
else
node
end