projects
/
lightning.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Generate annotations for slices.
[lightning.git]
/
export.go
diff --git
a/export.go
b/export.go
index b6b6263117c0db461ec424521341ce2e0177210d..1ea08fe75704b6b44e786589272d79e943aa01f2 100644
(file)
--- a/
export.go
+++ b/
export.go
@@
-133,7
+133,7
@@
func (cmd *exporter) RunCommand(prog string, args []string, stdin io.Reader, std
Priority: *priority,
APIAccess: true,
}
Priority: *priority,
APIAccess: true,
}
- err = runner.TranslatePaths(inputDir)
+ err = runner.TranslatePaths(inputDir
, cases
)
if err != nil {
return 1
}
if err != nil {
return 1
}
@@
-175,7
+175,7
@@
func (cmd *exporter) RunCommand(prog string, args []string, stdin io.Reader, std
retainTileSequences: true,
compactGenomes: map[string][]tileVariantID{},
}
retainTileSequences: true,
compactGenomes: map[string][]tileVariantID{},
}
- err = tilelib.LoadDir(context.Background(), *inputDir
, nil
)
+ err = tilelib.LoadDir(context.Background(), *inputDir)
if err != nil {
return 1
}
if err != nil {
return 1
}
@@
-223,11
+223,14
@@
func (cmd *exporter) RunCommand(prog string, args []string, stdin io.Reader, std
cmd.cases = make([]bool, len(names))
if *cases != "" {
log.Infof("reading cases file: %s", *cases)
cmd.cases = make([]bool, len(names))
if *cases != "" {
log.Infof("reading cases file: %s", *cases)
- f, err := open(*cases)
+ var f io.ReadCloser
+ f, err = open(*cases)
if err != nil {
return 1
}
if err != nil {
return 1
}
- buf, err := io.ReadAll(f)
+ defer f.Close()
+ var buf []byte
+ buf, err = io.ReadAll(f)
if err != nil {
return 1
}
if err != nil {
return 1
}