chore: unnecessary use of fmt.Sprintf

This commit is contained in:
guoguangwu 2023-10-25 10:42:40 +08:00
parent 1e7b6c6251
commit f8660b0f2d
2 changed files with 2 additions and 2 deletions

View file

@ -187,7 +187,7 @@ func TestBatchLabelsDelete(t *testing.T) {
val := gjson.Get(r.Body.String(), `#(Name=="Batch Delete").Slug`)
assert.Equal(t, val.String(), "batch-delete")
r2 := PerformRequestWithBody(app, "POST", "/api/v1/batch/labels/delete", fmt.Sprintf(`{"labels": ["lt9k3pw1wowuy3c6", "pt9jtdre2lvl0ycc"]}`))
r2 := PerformRequestWithBody(app, "POST", "/api/v1/batch/labels/delete", `{"labels": ["lt9k3pw1wowuy3c6", "pt9jtdre2lvl0ycc"]}`)
var resp i18n.Response

View file

@ -36,7 +36,7 @@ func usersResetAction(ctx *cli.Context) error {
// Show prompt?
if !confirmed {
actionPrompt := promptui.Prompt{
Label: fmt.Sprintf("Reset the user database to a clean state?"),
Label: "Reset the user database to a clean state?",
IsConfirm: true,
}