Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 94bfdf2

Browse files
Merge pull request #756 from github-for-unity/fixes/remove-ambiguous-variables
Remove ambiguous variables/parameters
2 parents 781604f + 8c88cc6 commit 94bfdf2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/GitHub.Api/Application/ApplicationManagerBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void Run()
5757
GitInstallationState state = new GitInstallationState();
5858
try
5959
{
60-
SetupMetrics(Environment.UnityVersion, instanceId);
60+
SetupMetrics(Environment.UnityVersion);
6161

6262
if (Environment.IsMac)
6363
{
@@ -279,7 +279,7 @@ public void RestartRepository()
279279
Logger.Trace($"Got a repository? {(Environment.Repository != null ? Environment.Repository.LocalPath : "null")}");
280280
}
281281

282-
protected void SetupMetrics(string unityVersion, Guid instanceId)
282+
protected void SetupMetrics(string unityVersion)
283283
{
284284
string userId = null;
285285
if (UserSettings.Exists(Constants.GuidKey))
@@ -300,7 +300,7 @@ protected void SetupMetrics(string unityVersion, Guid instanceId)
300300
Environment.NodeJsExecutablePath,
301301
Environment.OctorunScriptPath);
302302

303-
UsageTracker = new UsageTracker(metricsService, UserSettings, Environment, userId, unityVersion, instanceId.ToString());
303+
UsageTracker = new UsageTracker(metricsService, UserSettings, Environment, userId, unityVersion, InstanceId.ToString());
304304

305305
if (firstRun)
306306
{

src/GitHub.Api/Managers/Downloader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ public Task<DownloadData> QueueDownload(UriString url, NPath targetDirectory)
116116
return aggregateDownloads.Task;
117117
}
118118

119-
private ITask<NPath> DownloadFile(UriString url, NPath targetDirectory, DownloadData result, Action<ITask<NPath>, NPath, bool, Exception> verifyDownload)
119+
private ITask<NPath> DownloadFile(UriString url, NPath targetDirectory, DownloadData res, Action<ITask<NPath>, NPath, bool, Exception> verifyDownload)
120120
{
121121
var download = new DownloadTask(cancellationToken, fs, url, targetDirectory)
122-
.Catch(e => { DownloadFailed(result, e); return true; });
122+
.Catch(e => { DownloadFailed(res, e); return true; });
123123
download.OnEnd += verifyDownload;
124124
return download;
125125
}

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/GitPathView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ private void ValidateAndSetGitInstallPath()
229229
}
230230
return state;
231231
})
232-
.FinallyInUI((success, exception, installationState) =>
232+
.FinallyInUI((success, exception, state) =>
233233
{
234234
if (!success)
235235
{

0 commit comments

Comments
 (0)