Skip to content

Commit

Permalink
Fixed crash in filename discovery when defining a stylesheet with raw…
Browse files Browse the repository at this point in the history
… content.
  • Loading branch information
mhaylock committed Feb 12, 2015
1 parent e2786a6 commit 79b584e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/swift/playground/assets/stylesheet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def save(destination_path, number)

def derived_filename(pathname_or_content)
filename = super(pathname_or_content)
filename.gsub(/\.scss$/, '')
filename.gsub(/\.scss$/, '') if filename
end

private
Expand Down

0 comments on commit 79b584e

Please sign in to comment.