From ec3f89b8ef0e5e427c4fa281c437f1822c065ba3 Mon Sep 17 00:00:00 2001 From: Malte Bauch <malte.bauch@stud.h-da.de> Date: Thu, 25 Mar 2021 19:04:09 +0100 Subject: [PATCH] fixed "not 'gofmt'-ed" error --- cmd/getDevice.go | 2 +- cmd/init.go | 3 ++- cmd/request.go | 2 +- cmd/requestAll.go | 2 +- nucleus/controller.go | 2 +- nucleus/http.go | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/cmd/getDevice.go b/cmd/getDevice.go index 1e36a0017..fb3bf1aed 100644 --- a/cmd/getDevice.go +++ b/cmd/getDevice.go @@ -48,7 +48,7 @@ var getDeviceCmd = &cobra.Command{ "uuid="+uuid, "sbi="+cliSbi, "pnd="+cliPnd, - ) + ) }, } diff --git a/cmd/init.go b/cmd/init.go index 17fb0ca83..4cedc0edd 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -28,6 +28,7 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + package cmd import ( @@ -41,7 +42,7 @@ var initCmd = &cobra.Command{ Short: "initialise SBI and PND", Long: ``, RunE: func(cmd *cobra.Command, args []string) error { - return cli.HttpGet(apiEndpoint, "init" ) + return cli.HttpGet(apiEndpoint, "init") }, } diff --git a/cmd/request.go b/cmd/request.go index a0c81e8a2..22c873386 100644 --- a/cmd/request.go +++ b/cmd/request.go @@ -49,7 +49,7 @@ var requestCmd = &cobra.Command{ "sbi="+cliSbi, "pnd="+cliPnd, "path="+args[0], - ) + ) }, } diff --git a/cmd/requestAll.go b/cmd/requestAll.go index 76aabb320..6bd906072 100644 --- a/cmd/requestAll.go +++ b/cmd/requestAll.go @@ -48,7 +48,7 @@ var requestAllCmd = &cobra.Command{ "sbi="+cliSbi, "pnd="+cliPnd, "path="+args[0], - ) + ) }, } diff --git a/nucleus/controller.go b/nucleus/controller.go index d9fc1f14f..ae666ee9d 100644 --- a/nucleus/controller.go +++ b/nucleus/controller.go @@ -63,7 +63,7 @@ func createSouthboundInterfaces() error { } // createPrincipalNetworkDomain initializes the controller with an initial PND -func createPrincipalNetworkDomain(sbi SouthboundInterface) error{ +func createPrincipalNetworkDomain(sbi SouthboundInterface) error { pnd, err := NewPND("base", "gosdn base pnd", uuid.New(), sbi) if err != nil { return err diff --git a/nucleus/http.go b/nucleus/http.go index 5d8ccb2dc..7463c4d78 100644 --- a/nucleus/http.go +++ b/nucleus/http.go @@ -162,4 +162,4 @@ func httpHandler(writer http.ResponseWriter, request *http.Request) { default: writer.WriteHeader(http.StatusBadRequest) } -} \ No newline at end of file +} -- GitLab