teal-language / teal-playground

teal-language/tl playground
https://teal-playground.netlify.app/
19 stars 1 forks source link

fix: make os.getenv return nil for unknown vars #36

Closed hishamhm closed 2 years ago

hishamhm commented 2 years ago

The playground is failing because current tl.tl uses os.getenv to check TL_DEBUG and that fails with an empty string. The solution is to make os.getenv a bit smarter and return the empty string only for TL_PATH (to keep current behavior), and nil for everything else.