replace gogo protobuf and switch linter
This commit is contained in:
@@ -22,15 +22,15 @@ const (
|
||||
// ThumbnailRequest combines all parameters provided when requesting a thumbnail
|
||||
type ThumbnailRequest struct {
|
||||
// The file path of the source file
|
||||
Filepath string
|
||||
Filepath string
|
||||
// The file name of the source file including the extension
|
||||
Filename string
|
||||
Filename string
|
||||
// The file extension
|
||||
Extension string
|
||||
Extension string
|
||||
// The requested width of the thumbnail
|
||||
Width int32
|
||||
Width int32
|
||||
// The requested height of the thumbnail
|
||||
Height int32
|
||||
Height int32
|
||||
// In case of a public share the public link token.
|
||||
PublicLinkToken string
|
||||
}
|
||||
@@ -97,7 +97,7 @@ func parseDimension(d, name string, defaultValue int64) (int64, error) {
|
||||
result, err := strconv.ParseInt(d, 10, 32)
|
||||
if err != nil || result < 1 {
|
||||
// The error message doesn't fit but for OC10 API compatibility reasons we have to set this.
|
||||
return 0, fmt.Errorf("Cannot set %s of 0 or smaller!", name) //nolint:golint
|
||||
return 0, fmt.Errorf("Cannot set %s of 0 or smaller!", name)
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user