add pointer for ids

This commit is contained in:
sentriz
2019-05-23 16:02:09 +01:00
parent ff009b8851
commit 5f59660702
6 changed files with 20 additions and 25 deletions

View File

@@ -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 0
return nil
}
return (*s)[l-1].ID
}