From f2cef211cda0d86ccd42e8aa411f9865a2a22cce Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 7 Feb 2022 11:07:39 -0500 Subject: cvss: rename v2Score to Score, update deps and tests --- cvss/v2scores.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'cvss/v2scores.go') diff --git a/cvss/v2scores.go b/cvss/v2scores.go index 03bbc24..990b805 100644 --- a/cvss/v2scores.go +++ b/cvss/v2scores.go @@ -6,27 +6,27 @@ import ( // CVSS v2 base, temporal, and environmental scores. type v2Scores struct { - base v2Score // base score - temporal v2Score // temporal score - env v2Score // environmental score + base Score // base score + temporal Score // temporal score + env Score // environmental score } // Create new CVSS v2Scores from floats. func newV2ScoresFromFloats(base, temporal, env float64) (v2Scores, error) { - // convert base score from float to v2score - baseScore, err := newV2Score(base) + // convert base from float to Score + baseScore, err := NewScore(base) if err != nil { return v2Scores{}, err } - // convert temporal score from float to v2score - tempScore, err := newV2Score(temporal) + // convert temporal from float to Score + tempScore, err := NewScore(temporal) if err != nil { return v2Scores{}, err } - // convert env score from float to v2score - envScore, err := newV2Score(env) + // convert env from float to Score + envScore, err := NewScore(env) if err != nil { return v2Scores{}, err } -- cgit v1.2.3