summary refs log tree commit diff stats
path: root/compiler/depends.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/depends.nim')
-rw-r--r--compiler/depends.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/depends.nim b/compiler/depends.nim
index cb462e188..84e66f780 100644
--- a/compiler/depends.nim
+++ b/compiler/depends.nim
@@ -42,8 +42,7 @@ proc toNimblePath(s: string, isStdlib: bool): string =
     let sub = "lib/"
     var start = s.find(sub)
     if start < 0:
-      result = ""
-      doAssert false
+      raiseAssert "unreachable"
     else:
       start += sub.len
       let base = s[start..^1]