Skip to content

Commit fd6c4fb

Browse files
Use IsNullOrWhiteSpace to check file upload id is present
1 parent 66fb939 commit fd6c4fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Notion.Client/Api/FileUploads/Send/FileUploadsClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public async Task<SendFileUploadResponse> SendAsync(
1515
throw new ArgumentNullException(nameof(sendFileUploadRequest));
1616
}
1717

18-
if (string.IsNullOrEmpty(sendFileUploadRequest.FileUploadId))
18+
if (string.IsNullOrWhiteSpace(sendFileUploadRequest.FileUploadId))
1919
{
2020
throw new ArgumentNullException(nameof(sendFileUploadRequest.FileUploadId));
2121
}

0 commit comments

Comments
 (0)