mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 06:49:39 +08:00

If an image is already on S3, but not available locally (eg. if they're already migrated), `path` is nil. This crashes the task, because File.exists?(nil) is not valid.