Skip to content

Commit

Permalink
perf: no changes, no need to refresh environment.
Browse files Browse the repository at this point in the history
fix #273
  • Loading branch information
aooohan committed May 16, 2024
1 parent 099640e commit 7c30b1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/commands/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ func envFlag(ctx *cli.Context) error {
exportEnvs[k] = v
}

// No changes, no need to refresh environment.
if sdkCurrentPaths.Len() == 0 {
return nil
}
osPaths := env.NewPaths(env.OsPaths)
sdkCurrentPaths.Merge(osPaths)
pathsStr := sdkCurrentPaths.String()
Expand Down

0 comments on commit 7c30b1c

Please sign in to comment.