summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorClyybber <darkmine956@gmail.com>2020-11-15 15:08:27 +0100
committerGitHub <noreply@github.com>2020-11-15 15:08:27 +0100
commit92da06e64ece2f87e259c17439c085074d77ef97 (patch)
tree7c38381a9fc0af7e0e9008ce0c68070e2823a5d0 /compiler
parent5ccfc8ccdc4b57506e5d61dcae69e902260cfd6e (diff)
downloadNim-92da06e64ece2f87e259c17439c085074d77ef97.tar.gz
Fix nimsuggest/#117 (#15602)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/extccomp.nim5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim
index d97f9a887..e37e867da 100644
--- a/compiler/extccomp.nim
+++ b/compiler/extccomp.nim
@@ -627,10 +627,7 @@ proc footprint(conf: ConfigRef; cfile: Cfile): SecureHash =
     getCompileCFileCmd(conf, cfile))
 
 proc externalFileChanged(conf: ConfigRef; cfile: Cfile): bool =
-  case conf.backend
-  of backendInvalid: doAssert false
-  of backendJs: return false # pre-existing behavior, but not sure it's good
-  else: discard
+  if conf.backend == backendJs: return false # pre-existing behavior, but not sure it's good
 
   var hashFile = toGeneratedFile(conf, conf.withPackageName(cfile.cname), "sha1")
   var currentHash = footprint(conf, cfile)