The most shitty codes you ever seen in your entire life. 💩
Did you think that the code that you seen was terrible? Look the codes bellow and be happy with you shitty code.
Just send a PR
const newReply = (reply !== null) ? reply : null;
const errorHandler = () => {
throw new Error();
};
const routine = async (callback) => {
return await userApi.get().then(()=> callback)
}
const sumBy = (collection, property) => _.sumBy(collection, item => item[property]);
if(computedDate != null){
myObject.setDueDate(computedDate);
}
else{
myObject.setDueDate(null);
}
public boolean logout(String token)
{
LogedUser user = logedUsers.remove(token);
return (user != null) ? true : false;
}
boolean returns = false;
if (c.getId() != null)
returns = true;
if (c.getName() != null)
returns = true;
if (c.getNif() != null)
returns = true;
if (!returns)
throw new ValidationException("Error message");