Skip to content

Commit

Permalink
Removing unnecessary checks
Browse files Browse the repository at this point in the history
- All these params are coming from internal callers.
  • Loading branch information
josesimoes committed Jul 23, 2024
1 parent 4c8a528 commit 3a49985
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/CLR/Core/FileStream/FileStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,6 @@ HRESULT CLR_RT_FileStream::SplitFilePath(
const char *c = fullPath;
uint32_t rootLen = 0;

if (!fullPath || !rootName || !rootNameLength || !relativePath)
{
NANOCLR_SET_AND_LEAVE(CLR_E_INVALID_PARAMETER);
}

rootName = const_cast<char *>(c);
// handle both '\' and '/' as path separator
while ((*c != '\\') && (*c != '/') && (*c != 0))
Expand Down

0 comments on commit 3a49985

Please sign in to comment.