Fix lint issue for eventshub.go
Signed-off-by: mecoding1 <118708378+mecoding1@users.noreply.github.com>
This commit is contained in:
parent
a410556364
commit
71d7acb506
|
|
@ -129,7 +129,7 @@ func subscribeHandler(ctx context.Context, topic string, getAllProperties bool,
|
||||||
}
|
}
|
||||||
// added properties if any ( includes application properties from iot-hub)
|
// added properties if any ( includes application properties from iot-hub)
|
||||||
if getAllProperties {
|
if getAllProperties {
|
||||||
if e.Properties != nil && len(e.Properties) > 0{
|
if e.Properties != nil && len(e.Properties) > 0 {
|
||||||
for key, value := range e.Properties {
|
for key, value := range e.Properties {
|
||||||
if str, ok := value.(string); ok {
|
if str, ok := value.(string); ok {
|
||||||
res.Metadata[key] = str
|
res.Metadata[key] = str
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue