Skip to content

Commit 705bb04

Browse files
committed
Corrected assets deprecation
1 parent 600aaf8 commit 705bb04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/cayley/command/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func NewHttpCmd() *cobra.Command {
4747
cmd.Flags().Bool("init", false, "initialize the database before using it")
4848
cmd.Flags().DurationP("timeout", "t", 30*time.Second, "elapsed time until an individual query times out")
4949
cmd.Flags().String("assets", "", "[depreacted]")
50-
if cmd.Flags().Lookup("assets") != nil || cmd.Flags().Lookup("assets").Value.String() == "" {
50+
if cmd.Flags().Lookup("assets") != nil || cmd.Flags().Lookup("assets").Value.String() != "" {
5151
clog.Errorf("The assets flag is deprecated as assets are provided as part of the binary.")
5252
}
5353
registerLoadFlags(cmd)

0 commit comments

Comments
 (0)