diff options
author | bnewbold <bnewbold@robocracy.org> | 2012-04-18 23:12:34 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2012-04-18 23:12:34 -0400 |
commit | 9c034ab99f8632db38a6c205b848137ebb506d28 (patch) | |
tree | 5d8b07777464d51ad2c5551690e1e55fbe05742c /core.go | |
parent | b6a2d46c5bbdca7ca5d3e50eece732b5b839f2c5 (diff) | |
download | bommom-9c034ab99f8632db38a6c205b848137ebb506d28.tar.gz bommom-9c034ab99f8632db38a6c205b848137ebb506d28.zip |
go fmt update
Diffstat (limited to 'core.go')
-rw-r--r-- | core.go | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -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 |