Minor "go tool vet" cleanups

This commit is contained in:
Julius Volz 2013-06-07 15:34:41 +02:00
parent 757ab938db
commit 558281890b
3 changed files with 2 additions and 3 deletions

View File

@ -131,7 +131,7 @@ func testProcessor001Process(t test.Tester) {
reader, err := os.Open(path.Join("fixtures", scenario.in))
if err != nil {
t.Fatalf("%d. couldn't open scenario input file %s: %s", scenario.in, err)
t.Fatalf("%d. couldn't open scenario input file %s: %s", i, scenario.in, err)
}
err = Processor001.Process(reader, time.Now(), scenario.baseLabels, inputChannel)

View File

@ -131,7 +131,7 @@ func testProcessor002Process(t test.Tester) {
reader, err := os.Open(path.Join("fixtures", scenario.in))
if err != nil {
t.Fatalf("%d. couldn't open scenario input file %s: %s", scenario.in, err)
t.Fatalf("%d. couldn't open scenario input file %s: %s", i, scenario.in, err)
}
err = Processor002.Process(reader, time.Now(), scenario.baseLabels, inputChannel)

View File

@ -217,7 +217,6 @@ func (t *TieredStorage) Serve(started chan<- bool) {
t.mu.Lock()
if t.state != tieredStorageStarting {
panic("Illegal State: Attempted to restart TieredStorage.")
return
}
t.state = tieredStorageServing