Commit 8ffc56d1 authored by Sebastian Stark's avatar Sebastian Stark

formatting fixes

parent 90227ab7
...@@ -185,7 +185,7 @@ func subcmdList() { ...@@ -185,7 +185,7 @@ func subcmdList() {
} }
func main() { func main() {
logger = log.New(os.Stderr, "", log.Ldate | log.Ltime | log.Lshortfile) logger = log.New(os.Stderr, "", log.Ldate|log.Ltime|log.Lshortfile)
config = LoadConfig() config = LoadConfig()
if config == nil { if config == nil {
log.Fatal("no config, don't know what to do!") log.Fatal("no config, don't know what to do!")
......
...@@ -12,7 +12,7 @@ import ( ...@@ -12,7 +12,7 @@ import (
) )
const ( const (
startAt int64 = 1400337722 startAt int64 = 1400337722
) )
var mockSnapshots = []string{ var mockSnapshots = []string{
...@@ -89,22 +89,22 @@ func TestPrune(t *testing.T) { ...@@ -89,22 +89,22 @@ func TestPrune(t *testing.T) {
c := make(chan *Snapshot, 100) c := make(chan *Snapshot, 100)
tests := []pruneTestPair{ tests := []pruneTestPair{
{ 0, {0,
[]string{}, []string{},
}, },
{ schedules[config.Schedule][0], {schedules[config.Schedule][0],
[]string{ []string{
"1400337706-1400337707 Obsolete", "1400337706-1400337707 Obsolete",
}, },
}, },
{ schedules[config.Schedule][0] * 10, {schedules[config.Schedule][0] * 10,
[]string{ []string{
"1400337716-1400337717 Obsolete", "1400337716-1400337717 Obsolete",
"1400337711-1400337712 Obsolete", "1400337711-1400337712 Obsolete",
"1400337691-1400337692 Obsolete", "1400337691-1400337692 Obsolete",
}, },
}, },
{ schedules[config.Schedule][0] * 20, {schedules[config.Schedule][0] * 20,
[]string{ []string{
"1400337531-1400337532 Obsolete", "1400337531-1400337532 Obsolete",
"1400337721-1400337722 Obsolete", "1400337721-1400337722 Obsolete",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment