From 416be8a77e316679b2ef4e521c55ab3d62c38171 Mon Sep 17 00:00:00 2001 From: stevedunnhq Date: Wed, 5 Jan 2022 08:15:40 +0000 Subject: [PATCH] Minor change to inline field --- src/PacMan.GameComponents/GameActs/AttractAct.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/PacMan.GameComponents/GameActs/AttractAct.cs b/src/PacMan.GameComponents/GameActs/AttractAct.cs index fcc8c42..6e25ee4 100644 --- a/src/PacMan.GameComponents/GameActs/AttractAct.cs +++ b/src/PacMan.GameComponents/GameActs/AttractAct.cs @@ -42,7 +42,6 @@ struct Instruction bool _chaseSubActReady; bool _finished; - readonly string _version; [SuppressMessage("ReSharper", "HeapView.ObjectAllocation.Evident")] public AttractAct( @@ -51,7 +50,7 @@ public AttractAct( IHumanInterfaceParser input, IGameSoundPlayer gameSoundPlayer) { - _version = Assembly + string version = Assembly .GetEntryAssembly() ?.GetCustomAttribute() ?.InformationalVersion ?? "??"; @@ -59,7 +58,7 @@ public AttractAct( MarqueeText[] texts = { new() { - Text = $"v{_version}", + Text = $"v{version}", YPosition = 195, TimeIdle = 1.Seconds(), TimeIn = 1.Seconds(),