aboutsummaryrefslogtreecommitdiffstats
path: root/core.go
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2012-04-18 23:12:11 -0400
committerbnewbold <bnewbold@robocracy.org>2012-04-18 23:12:11 -0400
commitb6a2d46c5bbdca7ca5d3e50eece732b5b839f2c5 (patch)
tree940c4c41d7585b715c29b7b3dd27e7ccb4e5d6d1 /core.go
parentb85e202511ea821c773f5eeb305ff71f040fc098 (diff)
downloadbommom-b6a2d46c5bbdca7ca5d3e50eece732b5b839f2c5.tar.gz
bommom-b6a2d46c5bbdca7ca5d3e50eece732b5b839f2c5.zip
bom load versioning
Diffstat (limited to 'core.go')
-rw-r--r--core.go4
1 files changed, 1 insertions, 3 deletions
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