From 9b67f2ae0de3df0e7d51824f691c1a55f8b48191 Mon Sep 17 00:00:00 2001 From: Matt Bengston Date: Sun, 9 Jul 2017 19:27:52 +0300 Subject: [PATCH] Fixed some warnings --- Plugins/Editor/WakaTime.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Plugins/Editor/WakaTime.cs b/Plugins/Editor/WakaTime.cs index fc485d8..9eb701e 100644 --- a/Plugins/Editor/WakaTime.cs +++ b/Plugins/Editor/WakaTime.cs @@ -22,7 +22,7 @@ namespace Bengsfort.Unity using UnityEditor.SceneManagement; [InitializeOnLoad] - public class WakaTime + public static class WakaTime { /// /// The current plugin version. @@ -251,11 +251,6 @@ static void OnSceneOpened(Scene scene, OpenSceneMode mode) /// /// Send a heartbeat every time a scene is closed. /// - /// - /// @TODO: the send heartbeat needs to be modified to accept a scene overload. - /// If it's overloaded, it should use that instead Then this can switch to - /// OnSceneClosed instead of Closing. - /// static void OnSceneClosing(Scene scene, bool removingScene) { PostHeartbeat(); @@ -283,7 +278,6 @@ static string FormatApiUrl(string path) /// API Key is validated by sending a GET for the current user using the /// provided key. If it is a valid key, it shouldn't return an error. /// - /// The API key. static void GetCurrentUser() { // If the user has deliberatly entered nothing, then reset the key @@ -1001,6 +995,9 @@ static string GetCurrentBranch() catch { // silence is golden + // There shouldn't be any errors here since we are redirecting + // standard error + UnityEngine.Debug.LogError(" There was an error getting git branch."); } finally {