Skip to content

Commit 876425c

Browse files
committed
build: fix compile errors on CurlMime
1 parent 2047a95 commit 876425c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/CurlMime.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ size_t CurlMimePart::StaticReadCallback(char* buffer, size_t size, size_t nitems
575575

576576
// Invalid return type
577577
return CURL_READFUNC_ABORT;
578-
} catch (const Napi::Error& e) {
578+
} catch (const Napi::Error&) {
579579
// Error in JS callback
580580
return CURL_READFUNC_ABORT;
581581
}
@@ -602,7 +602,7 @@ int CurlMimePart::StaticSeekCallback(void* userdata, curl_off_t offset, int orig
602602
}
603603

604604
return CURL_SEEKFUNC_FAIL;
605-
} catch (const Napi::Error& e) {
605+
} catch (const Napi::Error&) {
606606
return CURL_SEEKFUNC_FAIL;
607607
}
608608
}
@@ -623,7 +623,7 @@ void CurlMimePart::StaticFreeCallback(void* userdata) {
623623
if (!part->freeCallback.IsEmpty()) {
624624
try {
625625
part->freeCallback.Call({});
626-
} catch (const Napi::Error& e) {
626+
} catch (const Napi::Error&) {
627627
// Ignore errors in free callback
628628
}
629629
}

0 commit comments

Comments
 (0)