From 36e2400d1c0249e81f910e48a967e0202d5a8d46 Mon Sep 17 00:00:00 2001
From: Sebastien Douheret <sebastien.douheret@iot.bzh>
Date: Mon, 26 Jun 2017 18:53:06 +0200
Subject: Use xds-common go library.

---
 lib/syncthing/st.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'lib/syncthing')

diff --git a/lib/syncthing/st.go b/lib/syncthing/st.go
index 8fd50d3..88d0eb0 100644
--- a/lib/syncthing/st.go
+++ b/lib/syncthing/st.go
@@ -17,8 +17,8 @@ import (
 	"os/exec"
 
 	"github.com/Sirupsen/logrus"
-	"github.com/iotbzh/xds-agent/lib/common"
 	"github.com/iotbzh/xds-agent/lib/xdsconfig"
+	common "github.com/iotbzh/xds-common/golib"
 	"github.com/syncthing/syncthing/lib/config"
 )
 
@@ -185,7 +185,7 @@ func (s *SyncThing) Start() (*exec.Cmd, error) {
 			time.Sleep(500 * time.Millisecond)
 			if common.Exists(stConfigFile) {
 				break
-	}
+			}
 		}
 		if tmo <= 0 {
 			return nil, fmt.Errorf("Cannot start Syncthing for config file creation")
-- 
cgit