changed two lets into one let
parent
d9aea661a1
commit
22cecf9a11
6
util.rkt
6
util.rkt
|
@ -90,8 +90,8 @@
|
||||||
|
|
||||||
(define (remove-item-from-file args)
|
(define (remove-item-from-file args)
|
||||||
(let ([removed-item
|
(let ([removed-item
|
||||||
(get-removed-item (file->string-list path) args)])
|
(get-removed-item (file->string-list path) args)]
|
||||||
(let ([new-list
|
[new-list
|
||||||
(remove
|
(remove
|
||||||
(list-ref (file->string-list path) (string->number args))
|
(list-ref (file->string-list path) (string->number args))
|
||||||
(file->string-list path))])
|
(file->string-list path))])
|
||||||
|
@ -99,7 +99,7 @@
|
||||||
(string-join new-list "\n" #:after-last "\n")
|
(string-join new-list "\n" #:after-last "\n")
|
||||||
path
|
path
|
||||||
#:mode 'text
|
#:mode 'text
|
||||||
#:exists 'replace))
|
#:exists 'replace)
|
||||||
(d-hash-ref messages 'item-removed-prefix)
|
(d-hash-ref messages 'item-removed-prefix)
|
||||||
(quote-item removed-item)
|
(quote-item removed-item)
|
||||||
(d-hash-ref messages 'item-removed-suffix)))
|
(d-hash-ref messages 'item-removed-suffix)))
|
||||||
|
|
Loading…
Reference in New Issue