From 3bf1c4e262a9adc77a5fafff02d26e77c638efaf Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Tue, 13 Dec 2022 01:54:48 +0100 Subject: [PATCH] Add missing spaces between // and the comment --- service/api/put-updateusername.go | 2 +- service/database/db-profile.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/service/api/put-updateusername.go b/service/api/put-updateusername.go index d5d23d2..888c404 100644 --- a/service/api/put-updateusername.go +++ b/service/api/put-updateusername.go @@ -30,7 +30,7 @@ func (rt *_router) UpdateUsername(w http.ResponseWriter, r *http.Request, ps htt return } - if !stat { //todo: sta regex non me piace + if !stat { // todo: sta regex non me piace helpers.SendBadRequest(w, "Username must be between 3 and 16 characters long and can only contain letters, numbers and underscores", rt.baseLogger) return } diff --git a/service/database/db-profile.go b/service/database/db-profile.go index bf63fe6..2ee5751 100644 --- a/service/database/db-profile.go +++ b/service/database/db-profile.go @@ -5,8 +5,6 @@ import ( "github.com/notherealmarco/WASAPhoto/service/structures" ) -//this should be changed, but we need to change OpenAPI first - // Get user profile, including username, followers, following, and photos func (db *appdbimpl) GetUserProfile(uid string, requesting_uid string) (QueryResult, *structures.UserProfile, error) { // Get user info