func GetStudioName(reader models.StudioReader, image *models.Image) (string, error) {
	if image.StudioID.Valid {
		studio, err := reader.Find(int(image.StudioID.Int64))
		if err != nil {
			return "", err
		}

		if studio != nil {
			return studio.Name.String, nil
		}
	}

	return "", nil
}
// GetStudioName returns the name of the provided image's studio. It returns an
// empty string if there is no studio assigned to the image.
GetStudioName returns the name of the provided image's studio. It returns an
empty string if there is no studio assigned to the image.
// GetStudioName returns the name of the provided image ' s studio . It returns an // empty string if there is no studio assigned to the image .
func GetStudioName(reader models.StudioReader, image *models.Image) (string, error) {
	if image.StudioID.Valid {
		studio, err := reader.Find(int(image.StudioID.Int64))
		if err != nil {
			return "", err
		}
		if studio != nil {
			return studio.Name.String, nil
		}
	}
	return "", nil
}
func GetStudioName ( reader models . StudioReader , image * models . Image ) ( string , error ) { if image . StudioID . Valid { studio , err := reader . Find ( int ( image . StudioID . Int64 ) ) if err != nil { return " " , err } if studio != nil { return studio . Name . String , nil } } return " " , nil }
GetStudioName returns the name of the provided image's studio.
GetStudioName returns the name of the provided image ' s studio .