@@ -616,7 +616,7 @@ handle_import(
616616 if (idx < 0 && ufunc == NULL )
617617 goto erret ;
618618
619- // If already imported with the same propertis and the
619+ // If already imported with the same properties and the
620620 // IMP_FLAGS_RELOAD set then we keep that entry. Otherwise create
621621 // a new one (and give an error for an existing import).
622622 imported = find_imported (name , len , cctx );
@@ -806,7 +806,7 @@ update_vim9_script_var(
806806 }
807807 else
808808 {
809- sv = find_typval_in_script (& di -> di_tv , TRUE );
809+ sv = find_typval_in_script (& di -> di_tv );
810810 }
811811 if (sv != NULL )
812812 {
@@ -922,11 +922,10 @@ free_all_script_vars(scriptitem_T *si)
922922
923923/*
924924 * Find the script-local variable that links to "dest".
925- * Returns NULL if not found and when "give_error" is TRUE this is considered
926- * an internal error.
925+ * Returns NULL if not found and give an internal error.
927926 */
928927 svar_T *
929- find_typval_in_script (typval_T * dest , int give_error )
928+ find_typval_in_script (typval_T * dest )
930929{
931930 scriptitem_T * si = SCRIPT_ITEM (current_sctx .sc_sid );
932931 int idx ;
@@ -945,8 +944,7 @@ find_typval_in_script(typval_T *dest, int give_error)
945944 if (sv -> sv_name != NULL && sv -> sv_tv == dest )
946945 return sv ;
947946 }
948- if (give_error )
949- iemsg ("find_typval_in_script(): not found" );
947+ iemsg ("find_typval_in_script(): not found" );
950948 return NULL ;
951949}
952950
@@ -961,7 +959,7 @@ check_script_var_type(
961959 char_u * name ,
962960 where_T where )
963961{
964- svar_T * sv = find_typval_in_script (dest , TRUE );
962+ svar_T * sv = find_typval_in_script (dest );
965963 int ret ;
966964
967965 if (sv != NULL )
0 commit comments