Skip to content

Commit

Permalink
Merge branch 'master' of github.com:dotnet/roslyn into 4578-wildcard-…
Browse files Browse the repository at this point in the history
…deterministic
  • Loading branch information
TyOverby committed Sep 23, 2015
2 parents c70c4fe + fdd298c commit dff44c3
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 dff44c3

Please sign in to comment.