Permalink
Browse files

Clean up coding style for last commit

  • Loading branch information...
1 parent a121cdc commit 8100832120f15baa69fe4e35051f2c773923d2ee @hbons committed Aug 27, 2012
Showing with 11 additions and 11 deletions.
  1. +11 −11 SparkleShare/Windows/SparkleController.cs
@@ -191,20 +191,20 @@ public override void Quit ()
private void StartSSH ()
{
- string auth_agent_pid = Environment.GetEnvironmentVariable("SSH_AGENT_PID");
+ string auth_agent_pid = Environment.GetEnvironmentVariable ("SSH_AGENT_PID");
if (!string.IsNullOrEmpty (auth_agent_pid)) {
- SparkleLogger.LogInfo("Controller", "Trying existing ssh-agent with PID=" + auth_agent_pid);
+ SparkleLogger.LogInfo ("Controller", "Trying to use existing ssh-agent with PID=" + auth_agent_pid + "...");
this.ssh_agent_pid = Convert.ToInt32(auth_agent_pid);
- try
- {
- Process ssh_agent = Process.GetProcessById(this.ssh_agent_pid);
- SparkleLogger.LogInfo("Controller", "Using existing ssh-agent with PID=" + this.ssh_agent_pid);
+
+ try {
+ Process ssh_agent = Process.GetProcessById (this.ssh_agent_pid);
+ SparkleLogger.LogInfo ("Controller", "Using existing ssh-agent with PID=" + this.ssh_agent_pid);
+
return;
- }
- catch (ArgumentException e)
- {
- SparkleLogger.LogInfo("Controller", "ssh-agent with PID=" + auth_agent_pid + " does not exist. Starting a new one");
+
+ } catch (ArgumentException e) {
+ SparkleLogger.LogInfo ("Controller", "ssh-agent with PID=" + auth_agent_pid + " does not exist. Starting a new one...");
}
}
@@ -223,7 +223,7 @@ private void StartSSH ()
Match ssh_pid_match = new Regex (@"SSH_AGENT_PID=([^;\n\r]*)").Match (output);
if (auth_sock_match.Success)
- Environment.SetEnvironmentVariable("SSH_AUTH_SOCK", auth_sock_match.Groups[1].Value);
+ Environment.SetEnvironmentVariable ("SSH_AUTH_SOCK", auth_sock_match.Groups [1].Value);
if (ssh_pid_match.Success) {
string ssh_pid = ssh_pid_match.Groups [1].Value;

0 comments on commit 8100832

Please sign in to comment.