Skip to content

Commit 7a882e5

Browse files
authored
fix: remove fmt.Sprintf from tflog call, use static message
Address review feedback: use static log message string instead of fmt.Sprintf inside tflog.Info. Remove now-unused "fmt" import.
1 parent f11b655 commit 7a882e5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

github/resource_github_actions_environment_variable.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package github
33
import (
44
"context"
55
"errors"
6-
"fmt"
76
"net/http"
87
"net/url"
98

@@ -141,7 +140,7 @@ func resourceGithubActionsEnvironmentVariableRead(ctx context.Context, d *schema
141140
var ghErr *github.ErrorResponse
142141
if errors.As(err, &ghErr) {
143142
if ghErr.Response.StatusCode == http.StatusNotFound {
144-
tflog.Info(ctx, fmt.Sprintf("Removing actions variable %s from state because it no longer exists in GitHub", d.Id()), map[string]any{
143+
tflog.Info(ctx, "Removing actions variable from state because it no longer exists in GitHub", map[string]any{
145144
"variable_id": d.Id(),
146145
})
147146
d.SetId("")

0 commit comments

Comments
 (0)