Skip to content

Commit

Permalink
Removed unwanted lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh Vardhan committed Apr 16, 2024
2 parents 0887d0a + a6acb7a commit f895bee
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ export function formatPhone(phone: string | undefined): string | undefined {
}

export function handleArrayInput(mightBeArray: string[] | string | undefined): string {
if (typeof mightBeArray === 'string') return mightBeArray
if (typeof mightBeArray === 'undefined') return ''
if (Array.isArray(mightBeArray)) {
return mightBeArray.length > 0 ? mightBeArray[0] : ''
if(typeof mightBeArray === 'string') return mightBeArray
if(typeof mightBeArray === 'undefined') return ''
if(Array.isArray(mightBeArray)){
return mightBeArray.length>0 ? mightBeArray[0]: ''
}
return ''
}

0 comments on commit f895bee

Please sign in to comment.