aboutsummaryrefslogtreecommitdiffstats
path: root/bug
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-02-24 17:40:52 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 22:52:53 +0100
commit475b7b4c490bc3729772932f2d7bbcabb8f781a7 (patch)
tree345d35ce5cb563a470a06c87c13a0ce78ea576cd /bug
parent2fd5f71b592eeebd0c0c4c770a7dac88d7eae80a (diff)
downloadgit-bug-475b7b4c490bc3729772932f2d7bbcabb8f781a7.tar.gz
a round of cleanup
Diffstat (limited to 'bug')
-rw-r--r--bug/bug_actions_test.go3
-rw-r--r--bug/bug_test.go3
-rw-r--r--bug/label.go2
3 files changed, 3 insertions, 5 deletions
diff --git a/bug/bug_actions_test.go b/bug/bug_actions_test.go
index 4d42fb1d..345b5e9a 100644
--- a/bug/bug_actions_test.go
+++ b/bug/bug_actions_test.go
@@ -1,13 +1,12 @@
package bug
import (
+ "testing"
"time"
"github.com/MichaelMure/git-bug/identity"
"github.com/MichaelMure/git-bug/util/test"
"github.com/stretchr/testify/require"
-
- "testing"
)
func TestPushPull(t *testing.T) {
diff --git a/bug/bug_test.go b/bug/bug_test.go
index e104f921..4c3952eb 100644
--- a/bug/bug_test.go
+++ b/bug/bug_test.go
@@ -1,13 +1,12 @@
package bug
import (
+ "testing"
"time"
"github.com/MichaelMure/git-bug/identity"
"github.com/MichaelMure/git-bug/repository"
"github.com/stretchr/testify/assert"
-
- "testing"
)
func TestBugId(t *testing.T) {
diff --git a/bug/label.go b/bug/label.go
index b73222dd..0ad84f22 100644
--- a/bug/label.go
+++ b/bug/label.go
@@ -28,7 +28,7 @@ func (l *Label) UnmarshalGQL(v interface{}) error {
// MarshalGQL implements the graphql.Marshaler interface
func (l Label) MarshalGQL(w io.Writer) {
- w.Write([]byte(`"` + l.String() + `"`))
+ _, _ = w.Write([]byte(`"` + l.String() + `"`))
}
func (l Label) Validate() error {