mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 18:25:52 +08:00 
			
		
		
		
	[Fix] Remove un-local var EXIT_CODE.
Might possibly be a fix to part of #1236
This commit is contained in:
		
							
								
								
									
										6
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -2555,10 +2555,8 @@ nvm() { | |||||||
|  |  | ||||||
|       # This nvm_ensure_version_installed call can be a performance bottleneck |       # This nvm_ensure_version_installed call can be a performance bottleneck | ||||||
|       # on shell startup. Perhaps we can optimize it away or make it faster. |       # on shell startup. Perhaps we can optimize it away or make it faster. | ||||||
|       nvm_ensure_version_installed "${VERSION}" |       if ! nvm_ensure_version_installed "${VERSION}"; then | ||||||
|       EXIT_CODE=$? |         return $? | ||||||
|       if [ "$EXIT_CODE" != "0" ]; then |  | ||||||
|         return $EXIT_CODE |  | ||||||
|       fi |       fi | ||||||
|  |  | ||||||
|       local NVM_VERSION_DIR |       local NVM_VERSION_DIR | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user