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

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

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