aboutsummaryrefslogtreecommitdiffstats
path: root/core.go
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2012-04-18 23:12:34 -0400
committerbnewbold <bnewbold@robocracy.org>2012-04-18 23:12:34 -0400
commit9c034ab99f8632db38a6c205b848137ebb506d28 (patch)
tree5d8b07777464d51ad2c5551690e1e55fbe05742c /core.go
parentb6a2d46c5bbdca7ca5d3e50eece732b5b839f2c5 (diff)
downloadbommom-9c034ab99f8632db38a6c205b848137ebb506d28.tar.gz
bommom-9c034ab99f8632db38a6c205b848137ebb506d28.zip
go fmt update
Diffstat (limited to 'core.go')
-rw-r--r--core.go28
1 files changed, 14 insertions, 14 deletions
diff --git a/core.go b/core.go
index 6a79896..0ae6da1 100644
--- a/core.go
+++ b/core.go
@@ -78,23 +78,23 @@ func (b *Bom) AddLineItem(li *LineItem) error {
}
func (b *Bom) Validate() error {
- if !isShortName(b.Version) {
- return Error("version not a ShortName: \"" + b.Version + "\"")
- }
- if &b.Created == nil {
- return Error("created timestamp not defined")
- }
- return nil
+ if !isShortName(b.Version) {
+ return Error("version not a ShortName: \"" + b.Version + "\"")
+ }
+ if &b.Created == nil {
+ return Error("created timestamp not defined")
+ }
+ return nil
}
func (bs *BomStub) Validate() error {
- if !isShortName(bs.Name) {
- return Error("name not a ShortName: \"" + bs.Name + "\"")
- }
- if !isShortName(bs.Owner) {
- return Error("owner name not a ShortName: \"" + bs.Owner + "\"")
- }
- return nil
+ if !isShortName(bs.Name) {
+ return Error("name not a ShortName: \"" + bs.Name + "\"")
+ }
+ if !isShortName(bs.Owner) {
+ return Error("owner name not a ShortName: \"" + bs.Owner + "\"")
+ }
+ return nil
}
// ---------- testing