brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [1/2] brooklyn-client git commit: Fixed Compilation Issue
Date Thu, 14 Jul 2016 20:43:50 GMT
Repository: brooklyn-client
Updated Branches:
  refs/heads/master 4adfb0088 -> a191255ee


Fixed Compilation Issue

Unused Imports
Mismatch return parameters.

Project: http://git-wip-us.apache.org/repos/asf/brooklyn-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-client/commit/cfbd31d5
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-client/tree/cfbd31d5
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-client/diff/cfbd31d5

Branch: refs/heads/master
Commit: cfbd31d555a1bfd830749ce3f1d3ed530a84f845
Parents: e54c02d
Author: Jitendra <jitendra.takalkar@gmail.com>
Authored: Tue Jun 21 18:50:49 2016 +0530
Committer: GitHub <noreply@github.com>
Committed: Tue Jun 21 18:50:49 2016 +0530

----------------------------------------------------------------------
 api/server/server.go | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/cfbd31d5/api/server/server.go
----------------------------------------------------------------------
diff --git a/api/server/server.go b/api/server/server.go
index 71155bd..a46b705 100644
--- a/api/server/server.go
+++ b/api/server/server.go
@@ -19,9 +19,7 @@
 package server
 
 import (
-	"encoding/json"
 	"fmt"
-	"github.com/apache/brooklyn-client/models"
 	"github.com/apache/brooklyn-client/net"
 )
 
@@ -169,7 +167,7 @@ func ClearStates(network *net.Network) (string, error) {
 	if err != nil {
 		return "", nil
 	}
-	return string(body)
+	return string(body), nil
 }
 
 func Export(network *net.Network) (string, error) {
@@ -178,7 +176,7 @@ func Export(network *net.Network) (string, error) {
 	if err != nil {
 		return "", nil
 	}
-	return string(body)
+	return string(body), nil
 }
 
 // WIP
@@ -188,5 +186,5 @@ func Shutdown(network *net.Network) (string, error) {
 	if err != nil {
 		return "", err
 	}
-	return string(body)
+	return string(body), nil
 }


Mime
View raw message