We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa238d8 commit d94248cCopy full SHA for d94248c
format-all.el
@@ -526,7 +526,8 @@ need to be shell-quoted."
526
Returns t if GEM-NAME is listed in the current project's
527
Gemfile.lock, nil otherwise."
528
(let* ((lockfile "Gemfile.lock")
529
- (dir (locate-dominating-file (buffer-file-name) lockfile)))
+ (file (buffer-file-name))
530
+ (dir (and file (locate-dominating-file file lockfile))))
531
(and dir
532
(with-temp-buffer
533
(insert-file-contents (expand-file-name lockfile dir))
0 commit comments