mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-26 13:48:53 +08:00
NOISSUE - Remove redundant error check (#292)
This commit is contained in:
parent
3d134d52a6
commit
c5a40aeffa
@ -41,10 +41,7 @@ func (repo *influxRepo) Save(msg mainflux.Message) error {
|
||||
}
|
||||
|
||||
bp.AddPoint(pt)
|
||||
if err := repo.client.Write(bp); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return repo.client.Write(bp)
|
||||
}
|
||||
|
||||
func (repo *influxRepo) tagsOf(msg *mainflux.Message) tags {
|
||||
|
Loading…
x
Reference in New Issue
Block a user