Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Clean only if error is nil#98

Open
girokon wants to merge 1 commit intoImgur:masterfrom
girokon:clean_after_error
Open

Clean only if error is nil#98
girokon wants to merge 1 commit intoImgur:masterfrom
girokon:clean_after_error

Conversation

@girokon
Copy link

@girokon girokon commented May 4, 2016

uploadedfile.NewUploadedFile always returns nil as first argument if error, therefore this code throws panic if we can't detect mime type. This PR fixes this behavior

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant