Skip to content

Commit

Permalink
🚨 Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Mar 24, 2022
1 parent e42e3ab commit 0d68b2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/command/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ func (j *Builder) Unshift(p ...any) *Builder {
func (j Builder) Join() string {
var buf strings.Builder
for k, v := range j.cmd {
switch v.(type) {
switch v := v.(type) {
case string:
buf.WriteString(shellescape.Quote(v.(string)))
buf.WriteString(shellescape.Quote(v))
case Env:
buf.WriteString(v.(Env).String())
buf.WriteString(v.String())
case Raw:
buf.WriteString(string(v.(Raw)))
buf.WriteString(string(v))
default:
panic(fmt.Errorf("unknown value in command: %#v", v))
}
Expand Down

0 comments on commit 0d68b2b

Please sign in to comment.