瀏覽代碼

fix a few more linter errors

Alex Cheema 1 年之前
父節點
當前提交
931ced7c01
共有 1 個文件被更改,包括 4 次插入6 次删除
  1. 4 6
      exo/helpers.py

+ 4 - 6
exo/helpers.py

@@ -21,14 +21,12 @@ def get_system_info():
   if psutil.MACOS:
     if platform.machine() == "arm64":
       return "Apple Silicon Mac"
-    elif platform.machine() in ["x86_64", "i386"]:
+    if platform.machine() in ["x86_64", "i386"]:
       return "Intel Mac"
-    else:
-      return "Unknown Mac architecture"
-  elif psutil.LINUX:
+    return "Unknown Mac architecture"
+  if psutil.LINUX:
     return "Linux"
-  else:
-    return "Non-Mac, non-Linux system"
+  return "Non-Mac, non-Linux system"
 
 
 def get_inference_engine(inference_engine_name):