mirror of
https://github.com/prometheus/prometheus.git
synced 2025-12-07 02:21:01 +01:00
The modifiers were already printed as part of the VectorSelector, so for: `foo[5m] anchored` ...the output was: `foo anchored[5m] anchored` Similar to how it was already done for `@` and `offset`, I now removed these modifiers in the copy of the vector selector that is used to print the matrix selector. I also removed some unused code that restored the copy of the vector selector after overwriting its fields. AFAICS there was no use in doing that, since it was a copy already that would just be thrown away after printing, and the original selector wasn't affected. I also removed an erroneous comment in `atOffset()` where no actual copying took place and no fields were overwritten. Signed-off-by: Julius Volz <julius.volz@gmail.com>