Skip to content

Commit 4733145

Browse files
committed
apply review suggestions
1 parent adb9e62 commit 4733145

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/numscriptex/assets_manager.ex

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ defmodule Numscriptex.AssetsManager do
3333
def binary_path do
3434
path = Application.get_env(:numscriptex, :binary_path, @default_binary_path)
3535

36-
if path, do: to_charlist(path), else: @default_binary_path
36+
if !is_nil(path) && path != "" do
37+
to_charlist(path)
38+
else
39+
@default_binary_path
40+
end
3741
end
3842

3943
def hash_wasm_binary do

0 commit comments

Comments
 (0)