Skip to content

Commit

Permalink
fix: use Write()
Browse files Browse the repository at this point in the history
Signed-off-by: t-kikuc <[email protected]>
  • Loading branch information
t-kikuc committed Oct 7, 2024
1 parent 0c523fb commit 1c6e430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/launcher/cmd/launcher/launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func (l *launcher) run(ctx context.Context, input cli.Input) error {
if err != nil {
return fmt.Errorf("failed to create a temp file for SSH key data (%w)", err)
}
if _, err = tmpKeyFile.WriteString(string(decodedKey)); err != nil {
if _, err = tmpKeyFile.Write(decodedKey); err != nil {
return fmt.Errorf("failed to write SSH key data to a temp file (%w)", err)
}

Expand Down

0 comments on commit 1c6e430

Please sign in to comment.