// UpdateSource validates and updates source if given source file differ from current source.
UpdateSource validates and updates source if given source file differ from current source.
// UpdateSource validates and updates source if given source file differ from current source .
func (vn *VNode) UpdateSource(source *db.Source) error {
	if vn.IsSourceSame(source) {
		return ErrIsUpToDate
	}
	vn.SetSource(source)
	return vn.SaveSource()
}
func ( vn * VNode ) UpdateSource ( source * db . Source ) error { if vn . IsSourceSame ( source ) { return ErrIsUpToDate } vn . SetSource ( source ) return vn . SaveSource ( ) }
UpdateSource validates and updates source if given source file differ from current source.
UpdateSource validates and updates source if given source file differ from current source .