Update commits

Signed-off-by: Josef Fröhle <froehle@b1-systems.de>
This commit is contained in:
2018-03-26 20:47:41 +02:00
committed by Josef Fröhle
parent cd46239477
commit 4172a9c4a7
8 changed files with 57 additions and 57 deletions

View File

@@ -42,9 +42,8 @@ type lt struct {
func (e lt) test(n uint32) bool {
if e.flipped {
return e.value < n
} else {
return n < e.value
}
return n < e.value
}
type gte struct {
@@ -55,9 +54,8 @@ type gte struct {
func (e gte) test(n uint32) bool {
if e.flipped {
return e.value >= n
} else {
return n >= e.value
}
return n >= e.value
}
type lte struct {
@@ -68,9 +66,8 @@ type lte struct {
func (e lte) test(n uint32) bool {
if e.flipped {
return e.value <= n
} else {
return n <= e.value
}
return n <= e.value
}
type and struct {
@@ -81,9 +78,8 @@ type and struct {
func (e and) test(n uint32) bool {
if !e.left.test(n) {
return false
} else {
return e.right.test(n)
}
return e.right.test(n)
}
type or struct {
@@ -94,9 +90,8 @@ type or struct {
func (e or) test(n uint32) bool {
if e.left.test(n) {
return true
} else {
return e.right.test(n)
}
return e.right.test(n)
}
type pipe struct {