summaryrefslogtreecommitdiff
path: root/controllers/instance.rb
diff options
context:
space:
mode:
authoricebaker <icebaker@proton.me>2023-05-11 20:30:23 -0300
committericebaker <icebaker@proton.me>2023-05-11 20:30:23 -0300
commit45a8ebb61fe47f17d853838a27433c48abd914b9 (patch)
treed6e7ff5d5c2bcd212394e7bd66d6a720571ac556 /controllers/instance.rb
parent83180dc3f13e497870e0c23e181bd0c3889d02e2 (diff)
fixing ENV fetch
Diffstat (limited to 'controllers/instance.rb')
-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