use default null instead of pointer to primary key
This commit is contained in:
@@ -26,10 +26,10 @@ func (s *folderStack) Peek() model.Folder {
|
||||
return (*s)[l-1]
|
||||
}
|
||||
|
||||
func (s *folderStack) PeekID() *int {
|
||||
func (s *folderStack) PeekID() int {
|
||||
l := len(*s)
|
||||
if l == 0 {
|
||||
return nil
|
||||
return 0
|
||||
}
|
||||
return (*s)[l-1].ID
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user