From b6a2d46c5bbdca7ca5d3e50eece732b5b839f2c5 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Wed, 18 Apr 2012 23:12:11 -0400 Subject: bom load versioning --- core.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core.go') diff --git a/core.go b/core.go index 1d6debd..6a79896 100644 --- a/core.go +++ b/core.go @@ -81,9 +81,7 @@ func (b *Bom) Validate() error { if !isShortName(b.Version) { return Error("version not a ShortName: \"" + b.Version + "\"") } - // TODO: nil? what is zero of Time? - nullTime := time.Time{} - if b.Created == nullTime { + if &b.Created == nil { return Error("created timestamp not defined") } return nil -- cgit v1.2.3