Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
  • Loading branch information
qweeah committed Apr 13, 2023
1 parent 94e4104 commit 82e78a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/experimental/experimental.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ func IsDisabled() bool {

// Error returns an error for a disabled experimental feature.
func Error(description string) error {
return fmt.Errorf("%s been marked as experimental and not enabled by default. To use it, please set %s=%s in your environment", description, envName, enabled)
return fmt.Errorf("%s is experimental and not enabled by default. To use, please set %s=%s environment variable", description, envName, enabled)
}

// CheckCommandAndWarn checks whether an experimental command can be run.
func CheckCommandAndWarn(cmd *cobra.Command, args []string) error {
func CheckCommandAndWarn(cmd *cobra.Command, _ []string) error {
if err := Check(func() (string, bool) {
return fmt.Sprintf("%q", cmd.CommandPath()), true
}); err != nil {
Expand Down

0 comments on commit 82e78a2

Please sign in to comment.