Skip to content

Commit

Permalink
Remove always true if check (#5406)
Browse files Browse the repository at this point in the history
  • Loading branch information
STRd6 committed Apr 4, 2022
1 parent d535a78 commit 44bf599
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions lib/coffeescript/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions src/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ CoffeeScript.run = (code, options = {}) ->
mainModule.options = options

# Compile.
if not helpers.isCoffee(mainModule.filename) or require.extensions
answer = CoffeeScript.compile code, options
code = answer.js ? answer
answer = CoffeeScript.compile code, options
code = answer.js ? answer

mainModule._compile code, mainModule.filename

Expand Down

0 comments on commit 44bf599

Please sign in to comment.