Fix make check errors

This commit is contained in:
Alex Dadgar
2018-09-04 16:03:52 -07:00
parent 3879a875cc
commit da0bec03c1
9 changed files with 39 additions and 32 deletions

View File

@@ -264,10 +264,10 @@ func (c *Device) startRepl() error {
for {
in, err := c.Ui.Ask("> ")
if err != nil {
if fingerprintCancel != nil {
if fingerprintCancel != nil {
fingerprintCancel()
}
if statsCancel != nil {
if statsCancel != nil {
statsCancel()
}
return err
@@ -275,10 +275,10 @@ func (c *Device) startRepl() error {
switch {
case in == "exit()":
if fingerprintCancel != nil {
if fingerprintCancel != nil {
fingerprintCancel()
}
if statsCancel != nil {
if statsCancel != nil {
statsCancel()
}
return nil