Skip to content

Commit c943a60

Browse files
committed
attend review comments
Signed-off-by: Pablo Chacin <[email protected]>
1 parent 793cbb5 commit c943a60

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

analyze.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func Analyze(opts *Options) (Dependencies, error) {
1919
// if the manifest is not provided, we try to find it
2020
// if not found, it will be empty and ignored by the analyzer
2121
if !opts.Manifest.Ignore && opts.Manifest.IsEmpty() {
22-
if err := opts.findManifest(); err != nil {
22+
if err := opts.setManifest(); err != nil {
2323
return nil, err
2424
}
2525
}

options.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ func loadEnv(opts *Options) {
144144
opts.Env.Contents = []byte(value)
145145
}
146146

147-
func (opts *Options) findManifest() error {
147+
func (opts *Options) setManifest() error {
148+
// if the manifest is not provided, we try to find it
149+
// starting from the location of the script
148150
path, found, err := findManifest(opts.Script.Name)
149151
if err != nil {
150152
return err

0 commit comments

Comments
 (0)