1
0
Fork 0

Explicitly silence some errors

This commit is contained in:
Daniele Tricoli 2023-02-28 21:40:45 +01:00
parent 5347a56801
commit 28b96b65ea
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ func FindDeviceByAddress(address string) bluetooth.ScanResult {
err = adapter.Scan(func(adapter *bluetooth.Adapter, result bluetooth.ScanResult) {
if result.Address.String() == address {
adapter.StopScan()
_ = adapter.StopScan()
ch <- result
}
})
@ -112,5 +112,5 @@ func Send(address, text string) {
log.Error("Could not send: ", err)
}
device.Disconnect()
_ = device.Disconnect()
}

View File

@ -22,6 +22,6 @@ var sendCmd = &cobra.Command{
func init() {
sendCmd.Flags().StringVar(&address, "device", "", "ble device address")
sendCmd.MarkFlagRequired("device")
_ = sendCmd.MarkFlagRequired("device")
rootCmd.AddCommand(sendCmd)
}