mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: fix linter
This commit is contained in:
@ -62,7 +62,7 @@ func ExtractUserIDFromName(name string) (int32, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ExtractMemoUIDFromName returns the memo UID from a resource name.
|
// ExtractMemoUIDFromName returns the memo UID from a resource name.
|
||||||
// e.g., "memos/uuid" -> "uuid"
|
// e.g., "memos/uuid" -> "uuid".
|
||||||
func ExtractMemoUIDFromName(name string) (string, error) {
|
func ExtractMemoUIDFromName(name string) (string, error) {
|
||||||
tokens, err := GetNameParentTokens(name, MemoNamePrefix)
|
tokens, err := GetNameParentTokens(name, MemoNamePrefix)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user