Skip to content

Commit 79b584e

Browse files
committed
Fixed crash in filename discovery when defining a stylesheet with raw content.
1 parent e2786a6 commit 79b584e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/swift/playground/assets/stylesheet.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def save(destination_path, number)
1818

1919
def derived_filename(pathname_or_content)
2020
filename = super(pathname_or_content)
21-
filename.gsub(/\.scss$/, '')
21+
filename.gsub(/\.scss$/, '') if filename
2222
end
2323

2424
private

0 commit comments

Comments
 (0)