Skip to content

Commit 63cc4fb

Browse files
committed
remove useless check
1 parent fc905d9 commit 63cc4fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/request_body_processor/multipart.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ int Multipart::process_part_data(std::string *error, size_t offset) {
580580
m_mpp->m_tmp_file->Open();
581581

582582
/* do we have an opened file? */
583-
if (!m_mpp->m_tmp_file || m_mpp->m_tmp_file->getFd() < 0) {
583+
if (m_mpp->m_tmp_file->getFd() < 0) {
584584
ms_dbg_a(m_transaction, 1,
585585
"Multipart: Failed to create file: " \
586586
+ m_mpp->m_tmp_file->getFilename());

0 commit comments

Comments
 (0)