[VOL-3285] Resolving statis code analysis warnings
Change-Id: Iaddaae92c649fd27ce0a63f1786af594667c9e8e
diff --git a/internal/bbsimctl/commands/olt.go b/internal/bbsimctl/commands/olt.go
index a16edef..5f6747e 100644
--- a/internal/bbsimctl/commands/olt.go
+++ b/internal/bbsimctl/commands/olt.go
@@ -69,7 +69,7 @@
}
func RegisterOltCommands(parser *flags.Parser) {
- parser.AddCommand("olt", "OLT Commands", "Commands to query and manipulate the OLT device", &oltOptions{})
+ _, _ = parser.AddCommand("olt", "OLT Commands", "Commands to query and manipulate the OLT device", &oltOptions{})
}
func getOLT() *pb.Olt {
@@ -103,7 +103,7 @@
// print out
tableFormat := format.Format(DEFAULT_OLT_DEVICE_HEADER_FORMAT)
- tableFormat.Execute(os.Stdout, true, olt)
+ _ = tableFormat.Execute(os.Stdout, true, olt)
return nil
}
@@ -114,7 +114,7 @@
printOltHeader("NNI Ports for", olt)
tableFormat := format.Format(DEFAULT_PORT_HEADER_FORMAT)
- tableFormat.Execute(os.Stdout, true, olt.NNIPorts)
+ _ = tableFormat.Execute(os.Stdout, true, olt.NNIPorts)
return nil
}
@@ -125,7 +125,7 @@
printOltHeader("PON Ports for", olt)
tableFormat := format.Format(DEFAULT_PORT_HEADER_FORMAT)
- tableFormat.Execute(os.Stdout, true, olt.PONPorts)
+ _ = tableFormat.Execute(os.Stdout, true, olt.PONPorts)
return nil
}