Skip to content

Commit 49b3f23

Browse files
Guangming Wangkrasi-georgiev
authored andcommitted
remove duplicated assignment in v1/api.go (#647)
Signed-off-by: Guangming Wang <[email protected]>
1 parent 20428fa commit 49b3f23

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

api/prometheus/v1/api.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ func marshalPointJSON(ptr unsafe.Pointer, stream *json.Stream) {
100100
if abs != 0 {
101101
if abs < 1e-6 || abs >= 1e21 {
102102
fmt = 'e'
103-
fmt = 'e'
104103
}
105104
}
106105
buf = strconv.AppendFloat(buf, float64(p.Value), fmt, -1, 64)

0 commit comments

Comments
 (0)