Skip to content

Commit 0401d3e

Browse files
Copilotpelikhan
andcommitted
Fix golangci-lint gosimple violation in update_check.go
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
1 parent 70c585e commit 0401d3e

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

pkg/cli/update_check.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,7 @@ func shouldCheckForUpdate(noCheckUpdate bool) bool {
9292
// This is a heuristic - we can't reliably detect this, so we're conservative
9393
func isRunningAsMCPServer() bool {
9494
// Check for MCP_SERVER environment variable that could be set by the MCP server
95-
if os.Getenv("GH_AW_MCP_SERVER") != "" {
96-
return true
97-
}
98-
// Additional heuristic: check if we're likely being invoked by MCP server
99-
// MCP server tools typically run with minimal environment
100-
return false
95+
return os.Getenv("GH_AW_MCP_SERVER") != ""
10196
}
10297

10398
var (

0 commit comments

Comments
 (0)