Skip to content

Commit d6b8df6

Browse files
EasterPeanutsn3p
andauthored
Fix incorrect condition in statement
It should check for the json to be empty, not the stylesheet. (Stylesheet was also empty, that's why the test would pass.) Co-authored-by: Matthijs Kuiper <info@matthijskuiper.nl>
1 parent c626d84 commit d6b8df6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ex_css_modules/ex_css_modules.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ defmodule ExCSSModules do
6060

6161
raise(CompileError, description: message, file: "#{filename}.json")
6262

63-
empty_file?(filename) ->
63+
empty_file?("#{filename}.json") ->
6464
message =
6565
"""
6666
File is empty.

0 commit comments

Comments
 (0)