Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 8a194d0

Browse files
committed
Code: Removes unnecessary condition.
* As suggested by @QuLogic: sass/libsass#1001 (comment)
1 parent bd51ea4 commit 8a194d0

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/binding.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,8 @@ void GetStats(sass_context_wrapper* ctx_w, Sass_Context* ctx) {
138138
char** included_files = sass_context_get_included_files(ctx);
139139
Handle<Array> arr = NanNew<Array>();
140140

141-
if (included_files) {
142-
for (int i = 0; included_files[i] != nullptr; ++i) {
143-
arr->Set(i, NanNew<String>(included_files[i]));
144-
}
141+
for (int i = 0; included_files[i] != nullptr; ++i) {
142+
arr->Set(i, NanNew<String>(included_files[i]));
145143
}
146144

147145
NanNew(ctx_w->result)->Get(NanNew("stats"))->ToObject()->Set(NanNew("includedFiles"), arr);

test/fixtures/watching/foo.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
body{background:white}
1+
body{background:white}

0 commit comments

Comments
 (0)