mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
Lint fix
This commit is contained in:
parent
985659ea56
commit
3389acd42b
@ -386,10 +386,7 @@ func (c *FileController) getSignedURLForType(ctx *gin.Context, fileID int64, obj
|
||||
func isCliRequest(ctx *gin.Context) bool {
|
||||
// check if user-agent contains go-resty
|
||||
userAgent := ctx.Request.Header.Get("User-Agent")
|
||||
if strings.Contains(userAgent, "go-resty") {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return strings.Contains(userAgent, "go-resty")
|
||||
}
|
||||
|
||||
// getWasabiSignedUrlIfAvailable returns a signed URL for the given fileID and objectType. It prefers wasabi over b2
|
||||
|
Loading…
x
Reference in New Issue
Block a user