This is an automated email from the ASF dual-hosted git repository.

nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 97ed84817e6f7a02cf0c01f29fce9ad4e3c1352f
Author: Doru Bercea <gheorghe-teod.ber...@ibm.com>
AuthorDate: Tue Oct 20 14:02:33 2020 -0400

    Remove double printing of top level dependencies.
---
 pkg/cmd/inspect.go | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/pkg/cmd/inspect.go b/pkg/cmd/inspect.go
index d6bae77..ee2d461 100644
--- a/pkg/cmd/inspect.go
+++ b/pkg/cmd/inspect.go
@@ -206,12 +206,8 @@ func (command *inspectCmdOptions) run(args []string) error 
{
        }
 
        // Top level dependencies are printed out.
-       if !command.AllDependencies {
-               for _, dep := range dependencies {
-                       fmt.Printf("%v\n", dep)
-               }
-
-               // The dependencies var will contain both top level and 
transitive dependencies.
+       if command.AllDependencies {
+               // If --all-dependencies flag is set, move all transitive 
dependencies in the --dependencies-directory.
                err = getTransitiveDependencies(catalog, dependencies, command)
                if err != nil {
                        return err

Reply via email to