From 668aa5dae1690d1a061da728f83b2450485d47f4 Mon Sep 17 00:00:00 2001 From: Carlos Martín Nieto Date: Mon, 27 Oct 2014 15:12:18 +0100 Subject: Make the constants have types While Go will assign the correct type to a const block when it auto-creates the values, assigning makes the const be typeless and will only gain it in each particular use. Make each constant in the blocks have an assigned type. --- branch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'branch.go') diff --git a/branch.go b/branch.go index 48db67e..95c3807 100644 --- a/branch.go +++ b/branch.go @@ -15,7 +15,7 @@ type BranchType uint const ( BranchLocal BranchType = C.GIT_BRANCH_LOCAL - BranchRemote = C.GIT_BRANCH_REMOTE + BranchRemote BranchType = C.GIT_BRANCH_REMOTE ) type Branch struct { -- cgit v1.2.3