From 705bb046d6cf8de84eb74fb3693fe2f5daa68c91 Mon Sep 17 00:00:00 2001 From: Iddan Aaronsohn Date: Tue, 15 Oct 2019 10:02:19 +0300 Subject: [PATCH] Corrected assets deprecation --- cmd/cayley/command/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cayley/command/http.go b/cmd/cayley/command/http.go index 608fb445a..c05497e12 100644 --- a/cmd/cayley/command/http.go +++ b/cmd/cayley/command/http.go @@ -47,7 +47,7 @@ func NewHttpCmd() *cobra.Command { cmd.Flags().Bool("init", false, "initialize the database before using it") cmd.Flags().DurationP("timeout", "t", 30*time.Second, "elapsed time until an individual query times out") cmd.Flags().String("assets", "", "[depreacted]") - if cmd.Flags().Lookup("assets") != nil || cmd.Flags().Lookup("assets").Value.String() == "" { + if cmd.Flags().Lookup("assets") != nil || cmd.Flags().Lookup("assets").Value.String() != "" { clog.Errorf("The assets flag is deprecated as assets are provided as part of the binary.") } registerLoadFlags(cmd)