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)