From 0010e0214854daf301ac2750832e4b14233fee5c Mon Sep 17 00:00:00 2001 From: Jerzy Szczepkowski Date: Thu, 5 Feb 2015 00:52:34 +0100 Subject: [PATCH] Fixed formatting. --- pkg/constraint/constraint.go | 6 +++--- pkg/constraint/constraint_test.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/constraint/constraint.go b/pkg/constraint/constraint.go index da0c3749e14..078ca6d59d1 100644 --- a/pkg/constraint/constraint.go +++ b/pkg/constraint/constraint.go @@ -25,8 +25,8 @@ import ( // Allowed returns true if pods is a collection of bound pods // which can run without conflict on a single minion. func Allowed(pods []api.BoundPod) error { - if (PortsConflict(pods)) { - return fmt.Errorf("conflicting ports"); + if PortsConflict(pods) { + return fmt.Errorf("conflicting ports") } - return nil; + return nil } diff --git a/pkg/constraint/constraint_test.go b/pkg/constraint/constraint_test.go index 530428f91cc..bb6f84fc89d 100644 --- a/pkg/constraint/constraint_test.go +++ b/pkg/constraint/constraint_test.go @@ -41,8 +41,8 @@ func podWithContainers(containers ...api.Container) api.BoundPod { func TestAllowed(t *testing.T) { table := []struct { - err error - pods []api.BoundPod + err error + pods []api.BoundPod }{ { err: nil,