mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-11 23:50:05 +01:00
refactor: remove dead code
This commit is contained in:
parent
0588b89c07
commit
1caefa556e
3 changed files with 0 additions and 99 deletions
|
|
@ -32,28 +32,6 @@ const (
|
|||
|
||||
var ErrNoFile = errors.New("no jsonnetfile")
|
||||
|
||||
func Choose(dir string) (string, bool, error) {
|
||||
jsonnetfileLock := filepath.Join(dir, LockFile)
|
||||
jsonnetfile := filepath.Join(dir, File)
|
||||
|
||||
lockExists, err := Exists(jsonnetfileLock)
|
||||
if err != nil {
|
||||
return "", false, err
|
||||
}
|
||||
if lockExists {
|
||||
return jsonnetfileLock, true, nil
|
||||
}
|
||||
|
||||
fileExists, err := Exists(jsonnetfile)
|
||||
if err != nil {
|
||||
return "", false, err
|
||||
}
|
||||
if fileExists {
|
||||
return jsonnetfile, false, nil
|
||||
}
|
||||
|
||||
return "", false, ErrNoFile
|
||||
}
|
||||
|
||||
func Load(filepath string) (spec.JsonnetFile, error) {
|
||||
m := spec.JsonnetFile{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue