Skip to content

Commit b97b299

Browse files
committed
Fix expression loading in load_flow
1 parent 9992c1b commit b97b299

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/recorder.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def initialize
140140
end
141141

142142
def load_flow(path, line, binding)
143-
if @exprs.key?(path)
143+
unless @exprs.key?(path)
144144
@exprs[path] = load_exprs(path)
145145
end
146146
path_exprs = @exprs[path]
@@ -239,10 +239,9 @@ def load_variable_id(name)
239239
variable_id
240240
end
241241

242-
def load_exprs()
242+
def load_exprs(path)
243243
# TODO: eventually, if we implement recorder support for flow
244-
# for now this logic is handled by db-backend based on recorded lo
245-
# locals
244+
# for now this logic is handled by db-backend based on recorded locals
246245
{}
247246
end
248247

0 commit comments

Comments
 (0)