Renaming flag
This commit is contained in:
parent
bee856d9f8
commit
449384a02d
@ -31,7 +31,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FILE_FLAG_STATIC = 1 << iota
|
FileFlagStatic = 1 << iota
|
||||||
)
|
)
|
||||||
|
|
||||||
type stage struct {
|
type stage struct {
|
||||||
@ -155,7 +155,7 @@ func (gs *goldsmith) chain(s stage, c Chainer) {
|
|||||||
go c.Chain(gs, allowed, s.output)
|
go c.Chain(gs, allowed, s.output)
|
||||||
|
|
||||||
for file := range s.input {
|
for file := range s.input {
|
||||||
if file.flags&FILE_FLAG_STATIC != 0 || (f != nil && f.Filter(file.Path)) {
|
if file.flags&FileFlagStatic != 0 || (f != nil && f.Filter(file.Path)) {
|
||||||
s.output <- file
|
s.output <- file
|
||||||
} else {
|
} else {
|
||||||
allowed <- file
|
allowed <- file
|
||||||
@ -183,7 +183,7 @@ func (gs *goldsmith) NewFileStatic(path string) (*File, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
file.flags |= FILE_FLAG_STATIC
|
file.flags |= FileFlagStatic
|
||||||
return file, nil
|
return file, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user