Skip to content

Commit

Permalink
Switch from git-hooks-go to pre-commit-go
Browse files Browse the repository at this point in the history
  • Loading branch information
maruel committed Mar 10, 2015
1 parent 00a5201 commit 27a59ad
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

14 changes: 7 additions & 7 deletions .travis.yml
@@ -1,15 +1,15 @@
# Install with:
# cp git-hooks-go/sample.travis.yml .travis.yml
#
# travis-ci.org does *not* support .travis.yml to be a symlink!
# Copyright 2014 Marc-Antoine Ruel. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

sudo: false
language: go

go:
- 1.3
- 1.4

before_install:
- python git-hooks-go/install_prerequisites.py
- go get github.com/maruel/pre-commit-go

script:
- ./presubmit.py
- pre-commit-go
6 changes: 3 additions & 3 deletions generator_test.go
Expand Up @@ -73,7 +73,7 @@ func compress(t *testing.T, d []byte) int {
} else if i != len(d) {
t.Fatal("Unexpected len")
}
f.Flush()
_ = f.Flush()
return buf.Len()
}

Expand Down Expand Up @@ -165,7 +165,7 @@ func TestGeneratorDeterminism(t *testing.T) {
// properly overwritten.
{
g2 := NewGenerator(nil, nil)
g2.Write(v.Input)
_, _ = g2.Write(v.Input)
for j, e := range v.Expected {
d := make([]byte, e.Len)
read(t, g2, d, e.Len)
Expand Down Expand Up @@ -309,6 +309,6 @@ func BenchmarkGeneratorReseed(b *testing.B) {
b.ResetTimer()

for i := 0; i < b.N; i++ {
g.Write(data)
_, _ = g.Write(data)
}
}
1 change: 0 additions & 1 deletion git-hooks-go
Submodule git-hooks-go deleted from bb64cc
1 change: 0 additions & 1 deletion presubmit.py

This file was deleted.

0 comments on commit 27a59ad

Please sign in to comment.