tangled
alpha
login
or
join now
jcs.org
/
sdorfehs
0
fork
atom
A tiling window manager
0
fork
atom
overview
issues
pulls
pipelines
actions: Sprinkle some early return
jcs.org
5 years ago
32147b65
6f7b9003
+6
-6
1 changed file
expand all
collapse all
unified
split
actions.c
+6
-6
actions.c
···
4296
4296
if (setenv(var, val, 1) == -1)
4297
4297
return cmdret_new(RET_FAILURE, "cmd_setenv failed: %s",
4298
4298
strerror(errno));
4299
4299
-
else
4300
4300
-
return cmdret_new(RET_SUCCESS, NULL);
4299
4299
+
4300
4300
+
return cmdret_new(RET_SUCCESS, NULL);
4301
4301
}
4302
4302
4303
4303
cmdret *
···
4308
4308
value = getenv(ARG_STRING(0));
4309
4309
if (value)
4310
4310
return cmdret_new(RET_SUCCESS, "%s", value);
4311
4311
-
else
4312
4312
-
return cmdret_new(RET_FAILURE, NULL);
4311
4311
+
4312
4312
+
return cmdret_new(RET_FAILURE, NULL);
4313
4313
}
4314
4314
4315
4315
/*
···
4351
4351
if (unsetenv(var) == -1)
4352
4352
return cmdret_new(RET_FAILURE, "cmd_unsetenv failed: %s",
4353
4353
strerror(errno));
4354
4354
-
else
4355
4355
-
return cmdret_new(RET_SUCCESS, NULL);
4354
4354
+
4355
4355
+
return cmdret_new(RET_SUCCESS, NULL);
4356
4356
}
4357
4357
4358
4358
/*