From 3d30cf8e3128991e3f25df4d0b12c04e774d16ec Mon Sep 17 00:00:00 2001 From: mtgag Date: Mon, 24 Jun 2024 16:05:31 +0200 Subject: [PATCH] moved function --- v3/util/misc.go | 22 ---------------------- v3/util/qc_stmt.go | 7 +++++++ 2 files changed, 7 insertions(+), 22 deletions(-) delete mode 100644 v3/util/misc.go diff --git a/v3/util/misc.go b/v3/util/misc.go deleted file mode 100644 index aec61e872..000000000 --- a/v3/util/misc.go +++ /dev/null @@ -1,22 +0,0 @@ -package util - -/* - * ZLint Copyright 2024 Regents of the University of Michigan - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy - * of the License at http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing - * permissions and limitations under the License. - */ - -func AppendToStringSemicolonDelim(this *string, s string) { - if len(*this) > 0 && len(s) > 0 { - (*this) += "; " - } - (*this) += s -} diff --git a/v3/util/qc_stmt.go b/v3/util/qc_stmt.go index 06163f274..d46853f15 100644 --- a/v3/util/qc_stmt.go +++ b/v3/util/qc_stmt.go @@ -522,3 +522,10 @@ func handleIdEtsiQcsQcCompliance(statem qcStatementWithInfoField, raw anyContent "invalid format of ETSI Complicance statement")) return etsiObj } + +func AppendToStringSemicolonDelim(this *string, s string) { + if len(*this) > 0 && len(s) > 0 { + (*this) += "; " + } + (*this) += s +}