File tree Expand file tree Collapse file tree
GitHubVulnerabilities2v3/Extensions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // Copyright (c) .NET Foundation. All rights reserved.
1+ // Copyright (c) .NET Foundation. All rights reserved.
22// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33
44using System ;
@@ -113,7 +113,7 @@ public async Task FlushAsync(string outputFileName = null)
113113
114114 public async Task < int > WriteVulnerabilitiesAsync ( IEnumerable < Tuple < PackageVulnerability , bool > > vulnerabilities )
115115 {
116- _firstVulnWrittenTimestamp = _firstVulnWrittenTimestamp == DateTime . MinValue ? DateTimeOffset . UtcNow : _firstVulnWrittenTimestamp ;
116+ _firstVulnWrittenTimestamp = _firstVulnWrittenTimestamp == DateTimeOffset . MinValue ? DateTimeOffset . UtcNow : _firstVulnWrittenTimestamp ;
117117 foreach ( var vulnerability in vulnerabilities )
118118 {
119119 await WriteVulnerabilityAsync ( vulnerability . Item1 , vulnerability . Item2 ) ;
@@ -124,7 +124,7 @@ public async Task<int> WriteVulnerabilitiesAsync(IEnumerable<Tuple<PackageVulner
124124
125125 public Task WriteVulnerabilityAsync ( PackageVulnerability packageVulnerability , bool wasWithdrawn )
126126 {
127- _firstVulnWrittenTimestamp = _firstVulnWrittenTimestamp == DateTime . MinValue ? DateTimeOffset . UtcNow : _firstVulnWrittenTimestamp ;
127+ _firstVulnWrittenTimestamp = _firstVulnWrittenTimestamp == DateTimeOffset . MinValue ? DateTimeOffset . UtcNow : _firstVulnWrittenTimestamp ;
128128 try
129129 {
130130 if ( ! wasWithdrawn )
Original file line number Diff line number Diff line change 1- // Copyright (c) .NET Foundation. All rights reserved.
1+ // Copyright (c) .NET Foundation. All rights reserved.
22// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33
44using System ;
@@ -190,7 +190,7 @@ public void ResetStatistics()
190190
191191 public Uri ResolveUri ( string relativeUri )
192192 {
193- return new Uri ( BaseAddress , relativeUri ) ;
193+ return new Uri ( BaseAddress . GetLeftPart ( UriPartial . Path ) . TrimEnd ( '/' ) + "/" + relativeUri . TrimStart ( '/' ) ) ;
194194 }
195195
196196 protected string GetName ( Uri uri )
You can’t perform that action at this time.
0 commit comments