1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 19:44:01 +08:00

docs(commands) todo

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:
Brian Tiger Chow
2014-11-12 23:53:49 -08:00
committed by Juan Batiz-Benet
parent 562500491f
commit e6c5fc250c

View File

@ -160,7 +160,10 @@ func argValue(argDef cmds.Argument, value string) (interface{}, error) {
return value, nil
} else {
in, err := os.Open(value) // FIXME(btc) must close file. fix before merge
// NB At the time of this commit, file cleanup is performed when
// Requests are cleaned up. TODO try to perform open and close at the
// same level of abstraction (or at least in the same package!)
in, err := os.Open(value)
if err != nil {
return nil, err
}