Skip to content

Commit 724cddf

Browse files
committed
Added default values to static properties.
1 parent b3a6dd5 commit 724cddf

File tree

1 file changed

+5
-5
lines changed
  • Assets/Plugins/CandyCoded.GitStatus/Scripts/CustomEditor

1 file changed

+5
-5
lines changed

Assets/Plugins/CandyCoded.GitStatus/Scripts/CustomEditor/GitStatus.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ namespace CandyCoded.GitStatus
1111
public static class GitStatus
1212
{
1313

14-
public static string branch;
14+
public static string branch = "HEAD";
1515

16-
public static string[] branches;
16+
public static string[] branches = { };
1717

18-
public static string[] changedFiles;
18+
public static string[] changedFiles = { };
1919

20-
public static string[] untrackedFiles;
20+
public static string[] untrackedFiles = { };
2121

22-
public static DateTime lastUpdated;
22+
public static DateTime lastUpdated = DateTime.Now;
2323

2424
static GitStatus()
2525
{

0 commit comments

Comments
 (0)