Skip to content

Commit

Permalink
Remove unecessary print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
nimrodshn committed Dec 4, 2024
1 parent ab9daad commit b5183a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions pkg/concepts/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
package concepts

import (
"log"
"sort"

"github.com/openshift-online/ocm-api-metamodel/pkg/names"
Expand Down Expand Up @@ -193,7 +192,6 @@ func (t *Type) RemoveAttribute(name *names.Name) {
}
for i, attribute := range t.attributes {
if attribute.Name().Equals(name) {
log.Printf("---------- Deleting attribute %s", name.String())
t.attributes = append(t.attributes[:i], t.attributes[i+1:]...)
}
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/language/checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,8 @@ func (r *Reader) checkParameter(parameter *concepts.Parameter) {
}
if typ != nil && typ != parameter.Type() {
r.reporter.Errorf(
"Type of default value of parameter '%s' should be '%s', instead it was %s",
parameter, parameter.Type(), typ.Name().String(),
"Type of default value of parameter '%s' should be '%s'",
parameter, parameter.Type(),
)
}
}
Expand Down

0 comments on commit b5183a1

Please sign in to comment.