Skip to content

Commit

Permalink
fix: remove useless changes
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <[email protected]>
  • Loading branch information
zong-zhe committed Nov 30, 2023
1 parent a3a4de8 commit b76537c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/kcl/opt.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ func ParseArgs(pathList []string, opts ...Option) (Option, error) {
}
}

if len(args.KFilenameList) == 0 {
return Option{}, fmt.Errorf("kcl.Run: no kcl file")
}
return *args, nil
}

Expand Down

0 comments on commit b76537c

Please sign in to comment.