mirror of
https://github.com/nkanaev/yarr.git
synced 2025-12-15 08:37:21 +00:00
feed functions
This commit is contained in:
@@ -58,3 +58,10 @@ func New() (*Storage, error) {
|
||||
}
|
||||
return &Storage{db: db}, nil
|
||||
}
|
||||
|
||||
func intOrNil(id int64) interface{} {
|
||||
if id == 0 {
|
||||
return nil
|
||||
}
|
||||
return id
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user