mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-02 23:08:07 +08:00
refactor: key export requires exact repo ver
This commit is contained in:
parent
6b63de8a5a
commit
1d77f9d33d
@ -169,7 +169,7 @@ path can be specified with '--output=<path>' or '-o=<path>'.
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if ver > fsrepo.RepoVersion {
|
||||
if ver != fsrepo.RepoVersion {
|
||||
return fmt.Errorf("key export expects repo version (%d) but found (%d)", fsrepo.RepoVersion, ver)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user