Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/config/assemble_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ tasks:
t.Error("Got error during assemble readfile ", err)
} else {
actStr = configAssembler.assemble(contents)
if bytes.Compare(actStr, expStr) != 0 {
if !bytes.Equal(actStr, expStr) {
t.Error("Expected:\n>>>", string(expStr), "<<< Got:\n>>>", string(actStr), "<<<")
}
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/runtime/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ func newExecutorStats() *TaskStatistics {

func newExecutor(cfg *config.Config) *Executor {
executor := &Executor{
Environment: make(map[string]string, 0),
Environment: make(map[string]string),
eventHandlers: make([]EventHandler, 0),
config: cfg,
Tasks: make([]*Task, 0),
Statistics: newExecutorStats(),
cmdEtaCache: make(map[string]time.Duration, 0),
cmdEtaCache: make(map[string]time.Duration),
}

for _, taskConfig := range cfg.TaskConfigs {
Expand Down
2 changes: 1 addition & 1 deletion pkg/runtime/handler/compressed_ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type CompressedUI struct {
func NewCompressedUI(config *config.Config) *CompressedUI {

handler := &CompressedUI{
data: make(map[uuid.UUID]*cUiData, 0),
data: make(map[uuid.UUID]*cUiData),
startTime: time.Now(),
frame: jotframe.NewFixedFrame(1, false, false, false),
config: config,
Expand Down
2 changes: 1 addition & 1 deletion pkg/runtime/handler/task_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func NewTaskLogger(config *config.Config) *TaskLogger {
}

return &TaskLogger{
logs: make(map[uuid.UUID]*bufferedLog, 0),
logs: make(map[uuid.UUID]*bufferedLog),
config: config,
}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/runtime/handler/vertical_ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func NewVerticalUI(cfg *config.Config) *VerticalUI {
}

handler := &VerticalUI{
data: make(map[uuid.UUID]*display, 0),
data: make(map[uuid.UUID]*display),
spinner: spin.New(),
ticker: time.NewTicker(updateInterval),
startTime: time.Now(),
Expand Down