From 0f1e5e610ea3726a9ee7564eb70c23ea2ee29891 Mon Sep 17 00:00:00 2001 From: Godopu Date: Thu, 16 Dec 2021 17:34:08 +0900 Subject: [PATCH] commit 2021-12-16]17:34:06 --- listener.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/listener.go b/listener.go index 61aec78..87545e4 100644 --- a/listener.go +++ b/listener.go @@ -29,14 +29,14 @@ func compareMap(src map[string]interface{}, dst map[string]interface{}) bool { continue } - srcV, ok := value.(int) + srcV, ok := value.(float64) if !ok { - srcV = int(value.(float64)) + srcV = float64(value.(int)) } - dstV, ok := dst[key].(int) + dstV, ok := dst[key].(float64) if !ok { - dstV = int(dst[key].(float64)) + dstV = float64(dst[key].(int)) } if srcV != dstV {