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

Commit 373e2a1

Browse files
StanleyGoldmanshana
authored andcommitted
Removing virtual field - we should not call virtual methods on constructors
1 parent d24af6b commit 373e2a1

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/GitHub.Api/NewTaskSystem/TaskBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public override string ToString()
370370
public WaitHandle AsyncWaitHandle { get { return (Task as IAsyncResult).AsyncWaitHandle; } }
371371
public object AsyncState { get { return (Task as IAsyncResult).AsyncState; } }
372372
public bool CompletedSynchronously { get { return (Task as IAsyncResult).CompletedSynchronously; } }
373-
public virtual string Name { get; set; }
373+
public string Name { get; set; }
374374
public virtual TaskAffinity Affinity { get; set; }
375375
private ILogging logger;
376376
protected ILogging Logger { get { return logger = logger ?? Logging.GetLogger(GetType()); } }

src/GitHub.Api/Platform/FindExecTask.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ namespace GitHub.Unity
55
class FindExecTask : ProcessTask<NPath>
66
{
77
private readonly string arguments;
8-
private readonly string name;
98

109
public FindExecTask(string executable, CancellationToken token)
1110
: base(token, new FirstLineIsPathOutputProcessor())
1211
{
13-
Name = name = DefaultEnvironment.OnWindows ? "where" : "which";
12+
Name = DefaultEnvironment.OnWindows ? "where" : "which";
1413
arguments = executable;
1514
}
1615

src/UnityExtension/Assets/Editor/GitHub.Unity/Tasks/EvaluateProjectConfigurationTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ private IEnumerable<ProjectConfigurationIssue> EvaluateGitIgnore()
321321
}
322322
}
323323

324-
public override string Name { get { return "Project Evaluation"; } }
324+
public string Name { get { return "Project Evaluation"; } }
325325

326326
private enum SerializationSetting
327327
{

0 commit comments

Comments
 (0)