Skip to content

Commit

Permalink
Merge pull request #5407 from cston/ng
Browse files Browse the repository at this point in the history
Misc. cleanup
  • Loading branch information
cston committed Sep 23, 2015
2 parents a90e0e6 + e34e5dc commit fdd298c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ internal override ImmutableArray<string> ResolveNuGetPackage(string packageName,
catch (UnauthorizedAccessException)
{
}
return default(ImmutableArray<string>);
return ImmutableArray<string>.Empty;
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Interactive/HostTest/NuGetPackageResolverTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public void HandledException()
bool restored = false;
var resolver = new NuGetPackageResolverImpl(directory.Path, startInfo => { restored = true; throw new IOException(); });
var actualPaths = resolver.ResolveNuGetPackage("A.B.C", "1.2");
Assert.True(actualPaths.IsDefault);
Assert.True(actualPaths.IsEmpty);
Assert.True(restored);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ internal sealed class RuntimeMetadataReferenceResolver : MetadataReferenceResolv
internal RuntimeMetadataReferenceResolver(
ImmutableArray<string> searchPaths,
string baseDirectory)
: this(new RelativePathResolver(searchPaths.NullToEmpty(), baseDirectory),
null,
GacFileResolver.Default)
: this(new RelativePathResolver(searchPaths, baseDirectory), null, GacFileResolver.Default)
{
}

Expand Down

0 comments on commit fdd298c

Please sign in to comment.