Skip to content

Commit

Permalink
chore: unnecessary use of fmt.Sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored and randombenj committed Jul 14, 2023
1 parent ecc0551 commit 847fd90
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/task.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package api

import (
"fmt"
"net/http"
"strconv"

Expand Down Expand Up @@ -145,7 +144,7 @@ func apiTasksDelete(c *gin.Context) {
// POST /tasks-dummy
func apiTasksDummy(c *gin.Context) {
resources := []string{"dummy"}
taskName := fmt.Sprintf("Dummy task")
taskName := "Dummy task"
maybeRunTaskInBackground(c, taskName, resources, func(out aptly.Progress, detail *task.Detail) (*task.ProcessReturnValue, error) {
out.Printf("Dummy task started\n")
detail.Store([]int{1, 2, 3})
Expand Down

0 comments on commit 847fd90

Please sign in to comment.