Skip to content

Commit

Permalink
Simplifying, will worry about test later
Browse files Browse the repository at this point in the history
  • Loading branch information
daonb committed Apr 7, 2024
1 parent 9a5b0f0 commit 12ba8dd
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions webexec.go
Original file line number Diff line number Diff line change
Expand Up @@ -683,13 +683,7 @@ func pasteCMD(c *cli.Context) error {
return fmt.Errorf("Failed to read clipboard content: %s", err)
}
if resp.StatusCode != http.StatusOK {
clipboardContent := os.Getenv("WEBEXEC_CLIPBOARD")
if clipboardContent != "" {
fmt.Print(clipboardContent)
return nil
} else {
return fmt.Errorf("Failed to get clipboard content: %s: %s", resp.Status, body)
}
return fmt.Errorf("Failed to get clipboard content: %s: %s", resp.Status, body)
}
fmt.Print(string(body))
return nil
Expand Down

0 comments on commit 12ba8dd

Please sign in to comment.