mirror of
https://github.com/kopia/kopia.git
synced 2026-01-14 09:27:53 -05:00
* chore(ci): upgraded linter to 1.53.3 This flagged a bunch of unused parameters, so the PR is larger than usual, but 99% mechanical. * separate lint CI task * run Lint in separate CI
16 lines
338 B
Go
16 lines
338 B
Go
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/kopia/kopia/internal/serverapi"
|
|
"github.com/kopia/kopia/repo"
|
|
)
|
|
|
|
func handleCurrentUser(ctx context.Context, _ requestContext) (interface{}, *apiError) {
|
|
return serverapi.CurrentUserResponse{
|
|
Username: repo.GetDefaultUserName(ctx),
|
|
Hostname: repo.GetDefaultHostName(ctx),
|
|
}, nil
|
|
}
|