diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -9,13 +9,13 @@
     def getMinDistance(self, nums: List[int], target: int, start: int) -> int:
         curVal=len(nums)
         for i in range(start,len(nums)):
-        if nums[i]==target:
-            curVal=min(curVal,abs(i-start))
-            break
+            if nums[i]==target:
+                curVal=min(curVal,abs(i-start))
+                break
         j=start
         while(j>=0):
             if nums[j]==target:
                 curVal=min(curVal,abs(j-start))
                 break
             j-=1
-        return curVal
+        return curVal