Skip to content

Commit

Permalink
fix: generate init function only when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWii committed Nov 7, 2022
1 parent 4b6a490 commit 01f3193
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bolt_expressions/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ def init(self):
self.called_init = True

def generate_init(self):
if not self.init_commands:
return

self.ctx.generate(
self.opts.init_path,
Function(
Expand Down

0 comments on commit 01f3193

Please sign in to comment.