Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
FileSystem.Unix.cs: use "== null" instead of "is null" (#315)
Browse files Browse the repository at this point in the history
mcs has problems with this new C# feature: "error CS1644: Feature `pattern matching' cannot be used because it is not part of the C# 7.3 language specification"
  • Loading branch information
akoeplinger authored Aug 1, 2019
1 parent 8e3d135 commit e4f7102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private static bool CopyDanglingSymlink(string sourceFullPath, string destFullPa
Interop.ErrorInfo errorInfo;
// get the target of the symlink
string linkTarget = Interop.Sys.ReadLink(sourceFullPath);
if (linkTarget is null)
if (linkTarget == null)
{
errorInfo = Interop.Sys.GetLastErrorInfo();
throw Interop.GetExceptionForIoErrno(errorInfo, sourceFullPath);
Expand Down

0 comments on commit e4f7102

Please sign in to comment.